1
0

ecc: add test that verify_usermessage does not enforce low-S rule

This commit is contained in:
SomberNight
2024-05-27 17:09:45 +00:00
parent bafd52ec6d
commit d61c6037ea
2 changed files with 11 additions and 0 deletions

View File

@@ -566,6 +566,8 @@ class ECPrivkey(ECPubkey):
return sig64
def ecdsa_sign_recoverable(self, msg32: bytes, *, is_compressed: bool) -> bytes:
assert len(msg32) == 32, len(msg32)
def bruteforce_recid(sig64: bytes):
for recid in range(4):
sig65 = construct_ecdsa_sig65(sig64, recid, is_compressed=is_compressed)