mirror of
https://github.com/SeedSigner/seedsigner.git
synced 2026-10-05 15:08:25 +00:00
bugfix for old var reference
Bump to embit 0.6.1
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
embit==0.6.0
|
embit==0.6.1
|
||||||
numpy==1.21.1
|
numpy==1.21.1
|
||||||
picamera==1.13
|
picamera==1.13
|
||||||
Pillow==8.2.0
|
Pillow==8.2.0
|
||||||
|
|||||||
@@ -313,9 +313,10 @@ class PSBTParser():
|
|||||||
for input in psbt.inputs:
|
for input in psbt.inputs:
|
||||||
for pub, derivation_path in input.bip32_derivations.items():
|
for pub, derivation_path in input.bip32_derivations.items():
|
||||||
fingerprints.add(hexlify(derivation_path.fingerprint).decode())
|
fingerprints.add(hexlify(derivation_path.fingerprint).decode())
|
||||||
|
|
||||||
for pub, (leaf_hashes, derivation_path) in input.taproot_bip32_derivations.items():
|
for pub, (leaf_hashes, derivation_path) in input.taproot_bip32_derivations.items():
|
||||||
# TODO: Support spends from leaves; depends on support in embit
|
# TODO: Support spends from leaves; depends on support in embit
|
||||||
if num_leaf_hashes > 0:
|
if len(leaf_hashes) > 0:
|
||||||
raise Exception("Signing keyspends from within a taptree not yet implemented")
|
raise Exception("Signing keyspends from within a taptree not yet implemented")
|
||||||
fingerprints.add(hexlify(derivation_path.fingerprint).decode())
|
fingerprints.add(hexlify(derivation_path.fingerprint).decode())
|
||||||
return list(fingerprints)
|
return list(fingerprints)
|
||||||
@@ -332,6 +333,7 @@ class PSBTParser():
|
|||||||
for pub, derivation_path in input.bip32_derivations.items():
|
for pub, derivation_path in input.bip32_derivations.items():
|
||||||
if seed_fingerprint == hexlify(derivation_path.fingerprint).decode():
|
if seed_fingerprint == hexlify(derivation_path.fingerprint).decode():
|
||||||
return True
|
return True
|
||||||
|
|
||||||
for pub, (leaf_hashes, derivation_path) in input.taproot_bip32_derivations.items():
|
for pub, (leaf_hashes, derivation_path) in input.taproot_bip32_derivations.items():
|
||||||
if seed_fingerprint == hexlify(derivation_path.fingerprint).decode():
|
if seed_fingerprint == hexlify(derivation_path.fingerprint).decode():
|
||||||
return True
|
return True
|
||||||
|
|||||||
Reference in New Issue
Block a user