#[no_mangle]
pub unsafe extern "C" fn ergo_merkle_proof_add_node(
    proof: MerkleProofPtr,
    hash: *const u8,
    hash_len: usize,
    side: u8
) -> ErrorPtr
Expand description

Adds a new node (above the current level). Hash must be exactly 32 bytes. side represents the side node is on in the tree, 0 = Left, 1 = Right