pub enum InputType {
Show 17 variants
P2pk,
P2pkLaxDer,
P2pkh,
P2pkhLaxDer,
P2shP2wpkh,
P2wpkh,
P2ms,
P2msLaxDer,
P2sh,
P2shP2wsh,
P2wsh,
P2trkp,
P2trsp,
P2a,
Coinbase,
CoinbaseWitness,
Unknown,
}
Variants§
P2pk
Pay-to-Public-Key input
P2pkLaxDer
Pay-to-Public-Key input when parsing the signature with non-strict DER encoding rules. This should only appear in transactions created before BIP-66 activation in 2015.
P2pkh
Pay-to-Public-Key-Hash input
P2pkhLaxDer
Pay-to-Public-Key-Hash input when parsing the signature with non-strict DER encoding rules. This should only appear in transactions created before BIP-66 activation in 2015.
P2shP2wpkh
Pay-to-Script-Hash wrapped Pay-to-Witness-Public-Key-Hash input
P2wpkh
Pay-to-Witness-Public-Key-Hash input
P2ms
Pay-to-Multisig input
P2msLaxDer
Pay-to-Multisig input when parsing the signature with non-strict DER encoding rules. This should only appear in transactions created before BIP-66 activation in 2015.
P2sh
Pay-to-Script-Hash input
P2shP2wsh
Pay-to-Script-Hash wrapped Pay-to-Witness-Script-Hash input
P2wsh
Pay-to-Witness-Script-Hash input
P2trkp
Pay-to-Taproot key path input
P2trsp
Pay-to-Taproot script path input
P2a
Pay-to-Anchor input
Coinbase
Coinbase transaction input
CoinbaseWitness
Coinbase transaction input with a witness
Unknown
Unknown or unhandled input