Expand description
SSZ blanket impls for alloc::collections::BTreeMap.
Wire format: equivalent to List<(K, V), MAX_BTREE_LEN> — i.e., a flat
list of sorted (K, V) pairs. Decode rejects out-of-order or duplicate
keys.
Hash form: same as List<(K, V), MAX_BTREE_LEN> — merkleize the pair
roots, mix in length.
Constants§
- MAX_
BTREE_ LEN - Implicit cap on
BTreeMaplength, in elements. Chosen as1 << 32(matches the SCALEu32count-prefix cap). - MAX_
VEC_ LEN - Implicit cap on
alloc::vec::Veclength, in elements. Matches the legacy SCALEu32count-prefix cap (1 << 32).