Module proof_v2

Module proof_v2 

Source
Expand description

Merkle proof generation v2 (leaf-only implementation). Proof calculation version 2: Leaf-only implementation.

This module provides a rewritten proof calculator that:

  • Uses only leaf data (HashedAccounts/Storages) to generate proofs
  • Returns proof nodes sorted lexicographically by path
  • Automatically resets after each calculation
  • Re-uses cursors across calculations
  • Supports generic value types with lazy evaluation

Structs§

ProofCalculator
A proof calculator that generates merkle proofs using only leaf data.
StorageDeferredValueEncoder
The deferred encoder for a storage slot value.
StorageValueEncoder
An encoder for storage slot values.
SyncAccountDeferredValueEncoder
The deferred encoder for an account value with synchronous storage root calculation.
SyncAccountValueEncoder
An account value encoder that synchronously computes storage roots.

Traits§

DeferredValueEncoder
A trait for deferred RLP-encoding of leaf values.
LeafValueEncoder
A trait for RLP-encoding values for proof calculation. This trait is designed to allow the lazy computation of leaf values in a generic way.

Type Aliases§

StorageProofCalculator
A proof calculator for storage tries.