Skip to content

Commit 51979c9

Browse files
committed
fix commitment serialization
Commitment was serialized differently at proving and verifying times.
1 parent 7996ba8 commit 51979c9

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

charms-spell-checker/src/bin.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,14 @@ use charms_data::{util, App};
44
pub fn main() {
55
// Read an input to the program.
66
let input_vec = sp1_zkvm::io::read_vec();
7-
8-
dbg!(input_vec.len());
9-
107
let input: SpellProverInput = util::read(input_vec.as_slice()).unwrap();
118

12-
dbg!(&input);
13-
149
let output = run(input);
1510

1611
eprintln!("about to commit");
1712

1813
// Commit to the public values of the program.
19-
sp1_zkvm::io::commit_slice(util::write(&output).unwrap().as_slice());
14+
sp1_zkvm::io::commit(&output);
2015
}
2116

2217
pub fn run(input: SpellProverInput) -> (String, NormalizedSpell) {

src/bin/charms-spell-checker

-18.5 KB
Binary file not shown.

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pub mod utils;
77

88
pub const SPELL_CHECKER_BINARY: &[u8] = include_bytes!("./bin/charms-spell-checker");
99

10-
pub const SPELL_VK: &str = "0x0061d4c45041155bfb34ee39a01d47e21cc56baf69e4be25f1320d36eb19ff6c";
10+
pub const SPELL_VK: &str = "0x0094c6013afd4d6ee47722ab5c557f695399b451d71b4495ea58165cb12864d6";
1111

1212
#[cfg(test)]
1313
mod test {

0 commit comments

Comments
 (0)