Open theanmolsharma opened 7 months ago
Same as the other one. How about Options?
And also a doc of this behavior on the functions, explaining which one throws None and why.
Same as the other one. How about Options?
And also a doc of this behavior on the functions, explaining which one throws None and why.
replied in #12
Add the following function to
Transaction
classThis function should extract the public key from the
script
orwitness
property of the input whichever is relevant based on the input type. The following output script types contain public key inscript
:The following output script types contain public key in
witness
:For all other script types, the function should return
null