Merge pull request #477 from kewde/patch-1

fix: public key validation
This commit is contained in:
tecnovert
2026-05-27 11:12:28 +00:00
committed by GitHub
+1 -2
View File
@@ -222,8 +222,7 @@ class Secp256k1Interface(CoinInterface, AdaptorSigInterface):
def isValidPubkey(self, pubkey: bytes) -> bool: def isValidPubkey(self, pubkey: bytes) -> bool:
try: try:
self.verifyPubkey(pubkey) return self.verifyPubkey(pubkey)
return True
except Exception: except Exception:
return False return False