#[no_mangle]
pub unsafe extern "C" fn ergo_merkle_proof_new(
    leaf_data: *const u8,
    len: usize,
    proof_out: *mut MerkleProofPtr
) -> ErrorPtr
Expand description

Creates a new MerkleProof with given leaf data. Use ergo_merkle_proof_add_node to add levelnodes to the proof. leaf_data must be 32 bytes