Skip to content

Commit

Permalink
Add read_from_host to zkvm trait (Sovereign-Labs#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
preston-evans98 authored Mar 2, 2023
1 parent 2fb3036 commit eda6b2a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sdk/src/state_machine/zk/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ pub trait ZkVM {
type Proof: ProofTrait<Self>;
type Error: Debug;

fn log<T: Encode>(item: T);
fn write_to_guest<T: Encode>(item: T);
fn read_from_host<T: Decode>() -> T;
fn verify(
proof: Self::Proof,
code_commitment: &Self::CodeCommitment,
Expand Down

0 comments on commit eda6b2a

Please sign in to comment.