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

Interface ZkvmGuest

header-chain/src/zkvm.rs:6–10  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4use risc0_zkvm::guest::env::{self};
5
6pub trait ZkvmGuest {
7 fn read_from_host<T: borsh::BorshDeserialize>(&self) -> T;
8 fn commit<T: borsh::BorshSerialize>(&self, item: &T);
9 fn verify<T: borsh::BorshSerialize>(&self, method_id: [u32; 8], journal: &T);
10}
11
12#[derive(Debug, Clone)]
13pub struct Proof {

Callers

nothing calls this directly

Implementers 1

zkvm.rsheader-chain/src/zkvm.rs

Calls

no outgoing calls

Tested by

no test coverage detected