@tevm/voltaire / primitives/Proof
primitives/Proof
Type Aliases
ProofLike
ProofLike =Defined in: src/primitives/Proof/ProofType.ts:33 Inputs that can be converted to ProofProofType| {proof: readonlyUint8Array[];value:Uint8Array; }
ProofType
ProofType = object
Defined in: src/primitives/Proof/ProofType.ts:15
Proof represents a generic Merkle proof for verifying inclusion in a Merkle tree.
A Merkle proof consists of:
- value: The leaf value being proven
- proof: An array of sibling hashes forming the path from leaf to root
Properties
proof
Defined in: src/primitives/Proof/ProofType.ts:27 Array of sibling hashes forming the Merkle branch. Each element is a node hash encountered on the path from leaf to root. Order matters - typically bottom-up (leaf to root).readonlyproof: readonlyUint8Array[]
value
Defined in: src/primitives/Proof/ProofType.ts:20 The leaf value being proven for inclusion. This is typically a hash or encoded data.readonlyvalue:Uint8Array
Functions
equals()
equals(Defined in: src/primitives/Proof/equals.js:20 Compares two Proofs for equality. Both value and all proof elements must match.a,b):boolean
Parameters
a
ProofType
First Proof
b
ProofType
Second Proof
Returns
boolean
- True if equal
Example
from()
from(Defined in: src/primitives/Proof/from.js:22 Creates a Proof from an object with value and proof array.proof):ProofType
Parameters
proof
ProofLike
Object containing value and proof array
Returns
ProofType
- A validated Proof

