mintBlue SDK
...
Envelopes
Pigi
Envelope Format
2min
Field | Size | Offset | Description |
Version | 1 | 0 | Version of the pigi file format. This defines the rest of the fields |
Algorithm | 1 | 1 | A single-byte to signal which algorithms are used |
File ID | 32 | 2 | The SHA256 of the original file |
Length | 4 | 34 | The length of the Payload field (uint32 big endian) |
IV | 16 | 38 | The Initialization Vector |
Payload | Value(Length) | 54 | The encrypted and compressed payload |
īģŋ
The Pigi file format version 0 can be defined using the restructure Node.js library as follows:
JS
|
īģŋ
īģŋ
Updated 03 Mar 2023
Did this page help you?