Expand description
Merklized state storage implementation for a database query engine.
Structsยง
- Node ๐
Functionsยง
- batch_
insert_ ๐hashes - Batch insert hashes using UNNEST for large batches (postgres only). Returns a map from hash bytes to their database IDs.
- build_
get_ ๐path_ query - collect_
nodes_ ๐from_ proofs - Collects nodes and hashes from merkle proofs. Returns (nodes, hashes) for batch insertion.
Type Aliasesยง
- Node
With ๐Hashes - Type alias for node data with optional children hashes and node hash. Used during batch collection before database insertion.
- Proof
With ๐Path - Type alias for a merkle proof with its traversal path.