Skip to content

Commit d5a8cfe

Browse files
chore: rename verify_proof_output to verify_stark
1 parent c66338a commit d5a8cfe

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

crates/sdk/programs/examples/verify-stark.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use alloc::vec::Vec;
77

88
use openvm::io::read;
99
use openvm_deferral_guest::Commit;
10-
use openvm_verify_stark_guest::{verify_proof_output, ProofOutput};
10+
use openvm_verify_stark_guest::{verify_stark, ProofOutput};
1111

1212
openvm::entry!(main);
1313

@@ -23,5 +23,5 @@ pub fn main() {
2323
};
2424

2525
let input_commit: Commit = read();
26-
verify_proof_output::<0>(&input_commit, &expected);
26+
verify_stark::<0>(&input_commit, &expected);
2727
}

docs/vocs/docs/pages/book/guest-libraries/verify-stark.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ Invokes a deferred call at deferral index `DEF_IDX` with the given `input_commit
2121

2222
`DEF_IDX` must match the index of the corresponding `DeferralFn` in `DeferralExtension.fns`, as configured when [building the VM extension](#using-deferralextension). Each STARK verifying key will correspond to a different deferral circuit, and thus a different `DEF_IDX`.
2323

24-
### `verify_proof_output`
24+
### `verify_stark`
2525

2626
```rust
27-
pub fn verify_proof_output<const DEF_IDX: u16>(input_commit: &Commit, expected: &ProofOutput)
27+
pub fn verify_stark<const DEF_IDX: u16>(input_commit: &Commit, expected: &ProofOutput)
2828
```
2929

30-
Convenience wrapper that calls `get_proof_output` and panics if the result does not match `expected`.
30+
Cals `get_proof_output` and panics if the result does not match `expected`.
3131

3232
## Circuit
3333

guest-libs/verify-stark/guest/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ pub fn get_proof_output<const DEF_IDX: u16>(input_commit: &Commit) -> ProofOutpu
3838
}
3939
}
4040

41-
pub fn verify_proof_output<const DEF_IDX: u16>(input_commit: &Commit, expected: &ProofOutput) {
41+
pub fn verify_stark<const DEF_IDX: u16>(input_commit: &Commit, expected: &ProofOutput) {
4242
let actual = get_proof_output::<DEF_IDX>(input_commit);
4343
if actual != *expected {
4444
panic!("Proof verification failed for commit {:?}", input_commit);

0 commit comments

Comments
 (0)