diff --git a/crypto-primitives/src/crh/bowe_hopwood/mod.rs b/crypto-primitives/src/crh/bowe_hopwood/mod.rs index 89a4ca2..68a3e90 100644 --- a/crypto-primitives/src/crh/bowe_hopwood/mod.rs +++ b/crypto-primitives/src/crh/bowe_hopwood/mod.rs @@ -1,4 +1,4 @@ -//! The [Bowe-Hopwood-Pedersen] hash is a optimized variant of the Pedersen CRH for +//! The [Bowe-Hopwood-Pedersen] hash is an optimized variant of the Pedersen CRH for //! specific Twisted Edwards (TE) curves. See [Section 5.4.17 of the Zcash protocol specification](https://raw.githubusercontent.com/zcash/zips/master/protocol/protocol.pdf#concretepedersenhash) for a formal description of this hash function, specialized for the Jubjub curve. //! The implementation in this repository is generic across choice of TE curves. diff --git a/crypto-primitives/src/merkle_tree/constraints.rs b/crypto-primitives/src/merkle_tree/constraints.rs index 83ae4f5..f6b9fbe 100644 --- a/crypto-primitives/src/merkle_tree/constraints.rs +++ b/crypto-primitives/src/merkle_tree/constraints.rs @@ -207,7 +207,7 @@ impl> PathVar { let mut curr_hash = PG::TwoToOneHash::evaluate(two_to_one_params, left_hash.borrow(), right_hash.borrow())?; - // To traverse up a MT, we iterate over the path from bottom to top (i.e. in reverse) + // To traverse up an MT, we iterate over the path from bottom to top (i.e. in reverse) // At any given bit, the bit being 0 indicates our currently hashed value is the left, // and the bit being 1 indicates our currently hashed value is on the right.