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

Method verify

header-chain/src/zkvm.rs:51–53  ·  view source on GitHub ↗
(&self, method_id: [u32; 8], output: &T)

Source from the content-addressed store, hash-verified

49 }
50
51 fn verify<T: borsh::BorshSerialize>(&self, method_id: [u32; 8], output: &T) {
52 env::verify(method_id, &borsh::to_vec(output).unwrap()).unwrap();
53 }
54}

Callers 1

header_chain_circuitFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected