mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-31 17:31:36 +00:00
lnbase: fix signature index
This commit is contained in:
parent
ba99795131
commit
52ae63990f
1 changed files with 2 additions and 1 deletions
|
@ -448,7 +448,8 @@ class Peer(PrintError):
|
|||
c_tx.sign({bh2u(funding_pubkey): (funding_privkey, True)})
|
||||
#
|
||||
self.print_error('ctx inputs', c_tx.inputs())
|
||||
sig = bytes.fromhex(c_tx.inputs()[0]["signatures"][0])
|
||||
sig_index = pubkeys.index(bh2u(funding_pubkey))
|
||||
sig = bytes.fromhex(c_tx.inputs()[0]["signatures"][sig_index])
|
||||
self.print_error('sig', len(sig))
|
||||
sig = bytes(sig[:len(sig)-1])
|
||||
r, s = sigdecode_der(sig, SECP256k1.generator.order())
|
||||
|
|
Loading…
Add table
Reference in a new issue