From ca9d36b6eb0705814adcb1282b4974e4998edaa0 Mon Sep 17 00:00:00 2001 From: jotabulacios Date: Wed, 16 Oct 2024 15:01:58 -0300 Subject: [PATCH] fix typos --- crypto/src/hash/rescue_prime/mod.rs | 2 +- crypto/src/hash/rescue_prime/parameters.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crypto/src/hash/rescue_prime/mod.rs b/crypto/src/hash/rescue_prime/mod.rs index eac4de6db..a66317880 100644 --- a/crypto/src/hash/rescue_prime/mod.rs +++ b/crypto/src/hash/rescue_prime/mod.rs @@ -730,7 +730,7 @@ mod tests { println!("let expected_hashes = vec!["); elements.iter().enumerate().for_each(|(i, _)| { - let input = elements.iter().take(i + 1); // Tomar el prefijo hasta i + 1 + let input = elements.iter().take(i + 1); let hash_output = rescue.hash(input.cloned().collect::>().as_slice()); print!(" vec!["); diff --git a/crypto/src/hash/rescue_prime/parameters.rs b/crypto/src/hash/rescue_prime/parameters.rs index a06b988df..4c8b9ffae 100644 --- a/crypto/src/hash/rescue_prime/parameters.rs +++ b/crypto/src/hash/rescue_prime/parameters.rs @@ -2,7 +2,7 @@ use super::Fp; pub const ALPHA: u64 = 7; pub const ALPHA_INV: u64 = 10540996611094048183; -// Constants for the Rescue hash function, these were obtained using the paper implementation in sage +// Constants obtained using the paper implementation in Sage // https://github.com/ASDiscreteMathematics/rpo/tree/master/reference_implementation pub const ROUND_CONSTANTS_128: [Fp; 168] = [