Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TODO: Psbt add methods to access Tx info #1559

Closed
junderw opened this issue Apr 15, 2020 · 1 comment
Closed

TODO: Psbt add methods to access Tx info #1559

junderw opened this issue Apr 15, 2020 · 1 comment

Comments

@junderw
Copy link
Member

junderw commented Apr 15, 2020

Could be getters:
inputs: hash, index, sequence
outputs: script, value

New method:
CheckForPubkey = pass it an index and a pubkey, it will take the hash160 and decompile the scriptPubkey, redeemScript (if any) and witnessScript (if any) to search for the pubkey or its hash160 and return true or false if it finds it. This method should also be available for outputs as well. Should throw an error if it sees a P2SH/P2WSH without the corresponding script.

@junderw
Copy link
Member Author

junderw commented Oct 11, 2020

Solved in #1561 and #1563

@junderw junderw closed this as completed Oct 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant