Module state

Module state 

Source
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ยง

NodeWithHashes ๐Ÿ”’
Type alias for node data with optional children hashes and node hash. Used during batch collection before database insertion.
ProofWithPath ๐Ÿ”’
Type alias for a merkle proof with its traversal path.