Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 1.31 KB

spec.md

File metadata and controls

34 lines (26 loc) · 1.31 KB

Dfinity Block

Data Types

uintN

An unsigned integer of N bits, represented in N/8 bytes in little endian order.

varuintN

A LEB128 variable-length integer, limited to N bits (i.e., the values [0, 2^N-1]), represented by at most ceil(N/7) bytes that may contain padding 0x80 bytes.

bytesN

A simple byte array of N length.

bls_signature

A BLS signature using the Fp254BNd curve. Each signature is 32 bytes.

ed25519_signature

ed25519 signature. Each signature is 32 bytes/

Block

Field Type Description
version uint8 The version of the block format
height varuint64 the height of the block
timeStamp varuint64 The time this block was minted as a Unix time stamp in milliseconds
prev_blockHash hash The hash of the prevous block.
state_root hash The state root of radix tree which stores the state and the transactions
beacon_signature signature
prev_notary_signature signature The notary for the prevous block.
minter_id varuint32 The ID of the minter
minter_sig signature The minter's signature