From 6550fcc14d84fae35d5f53b7da505f199f43e7fe Mon Sep 17 00:00:00 2001 From: thesimplekid Date: Sun, 3 Mar 2024 13:19:11 +0000 Subject: [PATCH] chore: update hash to cure test vectors --- crates/cashu/src/dhke.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/crates/cashu/src/dhke.rs b/crates/cashu/src/dhke.rs index 1631cf9b..dc196300 100644 --- a/crates/cashu/src/dhke.rs +++ b/crates/cashu/src/dhke.rs @@ -195,20 +195,18 @@ mod tests { .unwrap(); println!("{}", hex::encode(y.to_sec1_bytes())); assert_eq!(y, expected_y); - /* // Note that this message will take a few iterations of the loop before finding // a valid point let secret = "0000000000000000000000000000000000000000000000000000000000000002"; let sec_hex = decode(secret).unwrap(); let y = hash_to_curve(&sec_hex).unwrap(); let expected_y = k256::PublicKey::from_sec1_bytes( - &hex::decode("0277834447374a42908b34940dc2affc5f0fc4bbddb2e3b209c5c0b18438abf764") + &hex::decode("026cdbe15362df59cd1dd3c9c11de8aedac2106eca69236ecd9fbe117af897be4f") .unwrap(), ) .unwrap(); println!("{}", hex::encode(y.to_sec1_bytes())); assert_eq!(y, expected_y); - */ } #[test]