mirror of
https://github.com/basicswap/basicswap.git
synced 2026-05-29 23:31:40 +02:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 7bf3dce974 | |||
| b6e922e3a8 | |||
| 59be986aa4 | |||
| 25dd3809e9 |
@@ -11896,7 +11896,7 @@ class BasicSwap(BaseApp, BSXNetwork, UIApp):
|
|||||||
)
|
)
|
||||||
vkbs = ci_to.sumKeys(kbsl, kbsf)
|
vkbs = ci_to.sumKeys(kbsl, kbsf)
|
||||||
|
|
||||||
if coin_to == (Coins.XMR, Coins.WOW):
|
if coin_to in (Coins.XMR, Coins.WOW):
|
||||||
address_to = self.getCachedMainWalletAddress(ci_to, cursor)
|
address_to = self.getCachedMainWalletAddress(ci_to, cursor)
|
||||||
elif coin_to in (Coins.PART_BLIND, Coins.PART_ANON):
|
elif coin_to in (Coins.PART_BLIND, Coins.PART_ANON):
|
||||||
address_to = self.getCachedStealthAddressForCoin(coin_to, cursor)
|
address_to = self.getCachedStealthAddressForCoin(coin_to, cursor)
|
||||||
|
|||||||
@@ -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