From 0fdd8bd47728baf5e13f2da31e9fdad1a61a4f9b Mon Sep 17 00:00:00 2001 From: yperbasis Date: Wed, 19 Mar 2025 12:19:43 +0100 Subject: [PATCH] Fix is_valid_signature --- lib/silkpre/secp256k1n.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/silkpre/secp256k1n.cpp b/lib/silkpre/secp256k1n.cpp index 62073ac..1ecb56a 100644 --- a/lib/silkpre/secp256k1n.cpp +++ b/lib/silkpre/secp256k1n.cpp @@ -22,7 +22,7 @@ bool is_valid_signature(const intx::uint256& r, const intx::uint256& s, bool hom if (!r || !s) { return false; } - if (r >= kSecp256k1n && s >= kSecp256k1n) { + if (r >= kSecp256k1n || s >= kSecp256k1n) { return false; } // https://eips.ethereum.org/EIPS/eip-2