Skip to content

Commit a69bab7

Browse files
committed
[frontend] Add tweak for Merkle tree hashes (#812)
This PR adds a Keccak256 tweak circuit that will be used to hash the nodes in the XMSS merkle tree for the hash-based signature scheme.
1 parent 5bab600 commit a69bab7

File tree

2 files changed

+444
-0
lines changed

2 files changed

+444
-0
lines changed

crates/frontend/src/circuits/hash_based_sig/hashing/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
mod base;
33
mod chain;
44
mod message;
5+
mod tree;
56

67
pub use chain::{CHAIN_TWEAK, FIXED_MESSAGE_OVERHEAD, build_chain_hash, circuit_chain_hash};
78
pub use message::{MESSAGE_TWEAK, build_message_hash, circuit_message_hash, hash_message};
9+
pub use tree::{TREE_MESSAGE_OVERHEAD, TREE_TWEAK, build_tree_hash, circuit_tree_hash};

0 commit comments

Comments
 (0)