diff --git a/lib/transaction.py b/lib/transaction.py index 392a015db..c543276ef 100644 --- a/lib/transaction.py +++ b/lib/transaction.py @@ -454,8 +454,8 @@ def parse_witness(vds, txin): txin['witnessScript'] = witnessScript else: txin['num_sig'] = 1 - txin['pubkeys'] = [ w[-1] ] - txin['signatures'] = parse_sig([w[:-1]]) + txin['pubkeys'] = [w[1]] + txin['signatures'] = parse_sig([w[0]]) def parse_output(vds, i):