mirror of
https://github.com/basicswap/basicswap.git
synced 2026-05-30 07:41:41 +02:00
fix: public key validation
https://github.com/basicswap/coincurve/blob/2bf23f173f411a60c66ba973231fadab772bfed2/src/coincurve/dleag.py#L63
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user