From 27f9ab6accf102eee68b8cc221178054e06d1d1f Mon Sep 17 00:00:00 2001 From: arnaucube Date: Mon, 8 Mar 2021 20:52:47 +0100 Subject: [PATCH] Update to last poseidon-rs version Update to last Poseidon version (which includes the changes of the reference implementation from https://extgit.iaik.tugraz.at/krypto/hadeshash/-/commit/26ddaa91db58a600f16b0d94e2d624b861c95450) Compatible with update at circomlib (https://github.com/iden3/circomlib/commit/cf853c1cc96fa537cb1030f70a6f78e5d80ed0e4) --- Cargo.toml | 4 ++-- src/lib.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index a9c7cec..de411e9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "babyjubjub-rs" -version = "0.0.6" +version = "0.0.7" authors = ["arnaucube "] edition = "2018" license = "GPL-3.0" @@ -19,7 +19,7 @@ blake-hash = "0.4.0" generic-array = "0.13.2" tiny-keccak = "1.5" rustc-hex = "1.0.0" -poseidon-rs = "0.0.5" +poseidon-rs = "0.0.8" arrayref = "0.3.5" lazy_static = "1.4.0" diff --git a/src/lib.rs b/src/lib.rs index 5380a01..392069e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -738,7 +738,7 @@ mod tests { ); assert_eq!( sig.s.to_string(), - "1398758333392199195742243841591064350253744445503462896781493968760929513778" + "1672775540645840396591609181675628451599263765380031905495115170613215233181" ); let v = verify(pk, sig, msg); assert_eq!(v, true);