From 53d88655c43dd6bb979acad6aeb3cbde490140d9 Mon Sep 17 00:00:00 2001 From: Tristav <124001124+Pricstas@users.noreply.github.com> Date: Fri, 20 Dec 2024 13:33:26 +0100 Subject: [PATCH 1/2] typos mod.rs --- crypto-primitives/src/crh/bowe_hopwood/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. From 000c87ded4896a78751807b858b04823378cd2b5 Mon Sep 17 00:00:00 2001 From: Tristav <124001124+Pricstas@users.noreply.github.com> Date: Fri, 20 Dec 2024 13:33:57 +0100 Subject: [PATCH 2/2] typos constraints.rs --- crypto-primitives/src/merkle_tree/constraints.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.