Event
An event on the event chain can be compared to a transaction on a blockchain. An event has the following structure
Field | |
---|---|
| MIME type of the data |
| Binary |
| The hash of the previous event |
| Unix timestamp in milliseconds. Time of when the event was signed |
| Public key with key type |
| Signature of the binary representation of the event |
| Hash of the binary representation of the event |
JSON
previous
,signKey.publicKey
,signature
, andhash
are base58 encodeddata
is base64 encoded, and must be prefixed withbase64
.
Binary schema
The binary representation is used for signing and hashing the event.
Field | Type | Length |
---|---|---|
Previous | Hash (Bytes) | 32 |
Key type | KeyType (Byte) | 1 |
Public key | PublicKey (Array[Byte]) | 32 | 33 |
Timestamp | Long | 8 |
Media type length (N) | Short | 2 |
Media type | Array[Byte] | N |
Data length (M) | Short | 2 |
Data | Array[Byte] | M |
Last updated