Skip to content

TODO: Psbt add methods to access Tx info #1559

@junderw

Description

@junderw

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions