Module subair

Module subair 

Source

Structs§

HashSliceCtx
HashSliceSubAir
SubAir to hash N digest-sized elements into a single digest using a chain of Poseidon2 operations: N−1 permutations followed by 1 compression. Each step absorbs one element into the capacity portion of the running state.
MerklePathRowView
MerklePathSubAir
SubAir to constrain a single Merkle path represented over consecutive rows.
MerklePathSubAirContext
MerkleRootBus
MerkleRootMessage
MerkleTreeCols
MerkleTreeInternalBus
MerkleTreeInternalMessage
MerkleTreeSubAir
SubAir to constrain a Merkle root proof and send the root to MerkleRootBus

Functions§

generate_cols_from_leaf_children
Build Merkle-tree rows from leaf (left_child, right_child) inputs using Poseidon2 compression over BabyBear.
hash_slice_trace
Given N element digests, compute the N−1 intermediate full permutation states and the final digest, matching the layout of HashSliceCtx.