Skip to content

Commit 5a3b81a

Browse files
committed
feat(mmr): root from auth struct snippet
Add stub for calculating a Merkle root from an authentication struct. Also adds code to generate the witness. Cf. Neptune-Crypto/twenty-first#228
1 parent 746e958 commit 5a3b81a

File tree

5 files changed

+1746
-1
lines changed

5 files changed

+1746
-1
lines changed

tasm-lib/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ pub fn execute_test(
229229
terminal_state
230230
}
231231

232-
/// If the environment variable “TRITON_TUI” is set, write
232+
/// If the environment variable TASMLIB_TRITON_TUI is set, write
233233
/// 1. the program to file `program.tasm`, and
234234
/// 2. the VM state to file `vm_state.json`.
235235
///

tasm-lib/src/mmr.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
pub mod authentication_struct;
12
pub mod bag_peaks;
23
pub mod calculate_new_peaks_from_append;
34
pub mod calculate_new_peaks_from_leaf_mutation;
45
pub mod leaf_index_to_mt_index_and_peak_index;
6+
pub mod root_from_authentication_struct;
57
pub mod verify_from_memory;
68
pub mod verify_from_secret_in_leaf_index_on_stack;
79
pub mod verify_from_secret_in_secret_leaf_index;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pub mod shared;

0 commit comments

Comments
 (0)