Realm

oa::crypto::merkle::verify

Verify inclusion frames against roots and an independently trusted leaf count. Roots may contain one shared digest or one digest per proof. Malformed headers, identity/count mismatches and changed sibling paths return zero. Errors Rejects metadata, ownership, address limits, allocation or recording failures.

FnRust public API

Function Documentation

pub fn verify( leaves: &Matrix, frames: &Matrix, roots: &Matrix, algorithm: MerkleAlgorithm, leaf_count: u32 ) -> Result<Matrix>
Verify inclusion frames against roots and an independently trusted leaf count. Roots may contain one shared digest or one digest per proof. Malformed headers, identity/count mismatches and changed sibling paths return zero. Errors Rejects metadata, ownership, address limits, allocation or recording failures.