pub type RewardMerkleTreeV2 = UniversalMerkleTree<RewardAmount, Keccak256Hasher, RewardAccountV2, REWARD_MERKLE_TREE_V2_ARITY, KeccakNode>;Expand description
Canonical reward Merkle tree type (single-level, 160-bit).
This is the “reference” implementation used for:
- Testing two-level tree correctness (commitments must match)
- Understanding the logical tree structure
- Generating test vectors
Production code uses InMemoryRewardMerkleTreeV2 for better performance and storage
efficiency.
Aliased Type§
pub struct RewardMerkleTreeV2 { /* private fields */ }Trait Implementations§
Source§impl MerklizedState<SeqTypes, { Self::ARITY }> for RewardMerkleTreeV2
impl MerklizedState<SeqTypes, { Self::ARITY }> for RewardMerkleTreeV2
type Key = <UniversalMerkleTree<RewardAmount, Keccak256Hasher, RewardAccountV2, REWARD_MERKLE_TREE_V2_ARITY, KeccakNode> as MerkleTreeScheme>::Index
type Entry = <UniversalMerkleTree<RewardAmount, Keccak256Hasher, RewardAccountV2, REWARD_MERKLE_TREE_V2_ARITY, KeccakNode> as MerkleTreeScheme>::Element
type T = KeccakNode
type Commit = <UniversalMerkleTree<RewardAmount, Keccak256Hasher, RewardAccountV2, REWARD_MERKLE_TREE_V2_ARITY, KeccakNode> as MerkleTreeScheme>::Commitment
type Digest = Keccak256Hasher
Source§fn state_type() -> &'static str
fn state_type() -> &'static str
Retrieves the name of the state being queried.
Source§fn header_state_commitment_field() -> &'static str
fn header_state_commitment_field() -> &'static str
Retrieves the field in the header containing the Merkle tree commitment
for the state implementing this trait.
Source§fn tree_height() -> usize
fn tree_height() -> usize
Get the height of the tree