MCPcopy Create free account
hub / github.com/BitVM/BitVM / BlockInclusionProof

Class BlockInclusionProof

final-spv/src/merkle_tree.rs:215–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213
214#[derive(Serialize, Deserialize, Eq, PartialEq, Clone, Debug, BorshDeserialize, BorshSerialize)]
215pub struct BlockInclusionProof {
216 idx: u32,
217 merkle_proof: Vec<[u8; 32]>, // These are sibling nodes from the "mid-state" Merkle tree
218}
219
220impl BlockInclusionProof {
221 pub fn new(idx: u32, merkle_proof: Vec<[u8; 32]>) -> Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected