SHA256t(urn:ubideco:merkle:node#2024-01-31)
MerkleHash
hash
32
branching
depth
32
1
width
node1
node2
1
32
32
MerkleNode
NodeBranching
u8
MerkleNode
u256
MerkleNode
98 bytes:
VIRTUAL_LEAF = u256::MAX
32
NodeBranching
0x00: empty (two virtual leafs)
0x01: single (one virtual leaf)
0x02: branch
tag
MerkleNode
NodeBranching::Single
MerkleNode
NodeBranching::Empty
MerkleNode
NodeBranching::Branch
width=8
(2^depth)
depth=3