From fa4d9c1a44ab18d42f836e90f9a79dfd573af3c8 Mon Sep 17 00:00:00 2001 From: Kevaundray Wedderburn Date: Fri, 5 May 2023 19:25:00 +0100 Subject: [PATCH] change sha256 to keccak256 --- crates/nargo_cli/tests/test_data/keccak256/src/main.nr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/nargo_cli/tests/test_data/keccak256/src/main.nr b/crates/nargo_cli/tests/test_data/keccak256/src/main.nr index a0f500b3de4..8fafbaa4e27 100644 --- a/crates/nargo_cli/tests/test_data/keccak256/src/main.nr +++ b/crates/nargo_cli/tests/test_data/keccak256/src/main.nr @@ -5,6 +5,6 @@ use dep::std; fn main(x: Field, result: [u8; 32]) { // We use the `as` keyword here to denote the fact that we want to take just the first byte from the x Field // The padding is taken care of by the program - let digest = std::hash::sha256([x as u8]); + let digest = std::hash::keccak256([x as u8]); assert(digest == result); }