mirror of
https://github.com/basicswap/basicswap.git
synced 2025-11-05 18:38:09 +01:00
Add sanity check.
This commit is contained in:
@@ -82,6 +82,8 @@ def recoverNoScriptTxnWithKey(self, bid_id: bytes, encoded_key, session=None):
|
||||
raise ValueError('Provided key matches local key')
|
||||
vkbs = ci_follower.sumKeys(kbsl, kbsf)
|
||||
|
||||
ensure(ci_follower.verifyPubkey(xmr_swap.pkbs), 'Invalid pkbs') # Sanity check
|
||||
|
||||
# Ensure summed key matches the expected pubkey
|
||||
summed_pkbs = ci_follower.getPubkey(vkbs)
|
||||
if (summed_pkbs != xmr_swap.pkbs):
|
||||
|
||||
Reference in New Issue
Block a user