Type Alias fuel_merkle::sparse::Primitive
source ยท pub type Primitive = (u32, u8, Bytes32, Bytes32);
Expand description
Leaf buffer:
Allocation | Data |
---|---|
00 - 04 | Height (4 bytes) |
04 - 05 | Prefix (1 byte, 0x00 ) |
05 - 37 | hash(Key) (32 bytes) |
37 - 69 | hash(Data) (32 bytes) |
Node buffer:
Allocation | Data |
---|---|
00 - 04 | Height (4 bytes) |
04 - 05 | Prefix (1 byte, 0x01 ) |
05 - 37 | Left child key (32 bytes) |
37 - 69 | Right child key (32 bytes) |