Skip to content

Commit

Permalink
feat(mmr): root from auth struct snippet
Browse files Browse the repository at this point in the history
Add stub for calculating a Merkle root from an authentication struct.
Also adds code to generate the witness.

Cf. Neptune-Crypto/twenty-first#228
  • Loading branch information
Sword-Smith committed Aug 15, 2024
1 parent 746e958 commit 5a3b81a
Show file tree
Hide file tree
Showing 5 changed files with 1,746 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tasm-lib/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ pub fn execute_test(
terminal_state
}

/// If the environment variable “TRITON_TUI” is set, write
/// If the environment variable TASMLIB_TRITON_TUI is set, write
/// 1. the program to file `program.tasm`, and
/// 2. the VM state to file `vm_state.json`.
///
Expand Down
2 changes: 2 additions & 0 deletions tasm-lib/src/mmr.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
pub mod authentication_struct;
pub mod bag_peaks;
pub mod calculate_new_peaks_from_append;
pub mod calculate_new_peaks_from_leaf_mutation;
pub mod leaf_index_to_mt_index_and_peak_index;
pub mod root_from_authentication_struct;
pub mod verify_from_memory;
pub mod verify_from_secret_in_leaf_index_on_stack;
pub mod verify_from_secret_in_secret_leaf_index;
Expand Down
1 change: 1 addition & 0 deletions tasm-lib/src/mmr/authentication_struct.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pub mod shared;
Loading

0 comments on commit 5a3b81a

Please sign in to comment.