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

Interface ZkvmHost

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

Source from the content-addressed store, hash-verified

16}
17
18pub trait ZkvmHost {
19 // Adding data to the host
20 fn write<T: borsh::BorshSerialize>(&self, value: &T);
21
22 fn add_assumption(&self, proof: Proof);
23
24 // Proves with the given data
25 fn prove(&self, elf: &[u32]) -> Proof;
26}
27
28#[derive(Debug, Clone)]
29pub struct Risc0Guest;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected