Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified examples/simple_counter_application/app/elf/counter-guest.bin
Binary file not shown.
2 changes: 1 addition & 1 deletion examples/simple_counter_application/app/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ use serde::{Deserialize, Serialize};
pub const SIMPLE_COUNTER_ELF: &[u8] = include_bytes!("../elf/counter-guest.bin");
lazy_static! {
pub static ref SIMPLE_COUNTER_ID: Digest =
Digest::from_hex("a10d853b677adda8f65cd920ca2a3ee83b61f60892e3c31aeb2031933d677e6c")
Digest::from_hex("bfb58975cdb5cb0256d0e816f735bba9d7ac5a7738b5da75fa75023d6885d535")
.unwrap();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ impl LogicCircuit for CounterWitness {
let new_counter_root = self.new_counter_existence_path.root(&new_cm);
assert_eq!(old_counter_root, new_counter_root);

// Check old_counter.label_ref == new_counter.label_ref
assert_eq!(self.old_counter.label_ref, self.new_counter.label_ref);

assert_eq!(self.old_counter.quantity, 1);
assert_eq!(self.new_counter.quantity, 1);

Expand Down