From 6b614e238e0c2437d2035828571cd7c1e5e2dbf3 Mon Sep 17 00:00:00 2001 From: Maxim Vezenov Date: Mon, 26 Aug 2024 18:55:15 +0000 Subject: [PATCH] nargo fmt --- noir_stdlib/src/hash/keccak.nr | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/noir_stdlib/src/hash/keccak.nr b/noir_stdlib/src/hash/keccak.nr index cd63a1326e2..0c31d238f66 100644 --- a/noir_stdlib/src/hash/keccak.nr +++ b/noir_stdlib/src/hash/keccak.nr @@ -40,7 +40,7 @@ pub(crate) fn keccak256(input: [u8; N], message_size: u32) -> [u8; 3 let num_limbs = max_blocks * LIMBS_PER_BLOCK; //max_blocks_length / WORD_SIZE; for i in 0..num_limbs { let mut temp = [0; WORD_SIZE]; - let word_size_times_i = WORD_SIZE*i; + let word_size_times_i = WORD_SIZE * i; for j in 0..WORD_SIZE { temp[j] = block_bytes[word_size_times_i+j]; } @@ -48,7 +48,7 @@ pub(crate) fn keccak256(input: [u8; N], message_size: u32) -> [u8; 3 block_bytes[word_size_times_i + j] = temp[7 - j]; } } - + let mut sliced_buffer = Vec::new(); // populate a vector of 64-bit limbs from our byte array for i in 0..num_limbs { @@ -107,7 +107,7 @@ pub(crate) fn keccak256(input: [u8; N], message_size: u32) -> [u8; 3 state[j] = state[j] ^ sliced_buffer.get(i * LIMBS_PER_BLOCK + j); } state = keccakf1600(state); - } + } } }