From 4b1df4e50ffac182cae53d049b2ef4e0a5083340 Mon Sep 17 00:00:00 2001 From: Sarang Noether <32460187+SarangNoether@users.noreply.github.com> Date: Mon, 12 Aug 2019 15:58:15 -0400 Subject: [PATCH] Fix for biased signature nonce --- src/crypto/crypto.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/crypto/crypto.cpp b/src/crypto/crypto.cpp index 3f06c4f3f..d4b2a22bc 100644 --- a/src/crypto/crypto.cpp +++ b/src/crypto/crypto.cpp @@ -275,8 +275,6 @@ namespace crypto { buf.key = pub; try_again: random_scalar(k); - if (((const uint32_t*)(&k))[7] == 0) // we don't want tiny numbers here - goto try_again; ge_scalarmult_base(&tmp3, &k); ge_p3_tobytes(&buf.comm, &tmp3); hash_to_scalar(&buf, sizeof(s_comm), sig.c);