#[non_exhaustive]pub enum InputKey {
Show 27 variants
NonWitnessUtxo,
WitnessUtxo,
PartialSig,
SighashType,
RedeemScript,
WitnessScript,
Bip32Derivation,
FinalScriptSig,
FinalWitness,
PorCommitment,
Ripemd160,
Sha256,
Hash160,
Hash256,
PreviousTxid,
OutputIndex,
Sequence,
RequiredTimeLock,
RequiredHeightLock,
TapKeySig,
TapScriptSig,
TapLeafScript,
TapBip32Derivation,
TapInternalKey,
TapMerkleRoot,
Proprietary,
Unknown(u8),
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NonWitnessUtxo
PSBT_IN_NON_WITNESS_UTXO
WitnessUtxo
PSBT_IN_WITNESS_UTXO
PartialSig
PSBT_IN_PARTIAL_SIG
SighashType
PSBT_IN_SIGHASH_TYPE
RedeemScript
PSBT_IN_REDEEM_SCRIPT
WitnessScript
PSBT_IN_WITNESS_SCRIPT
Bip32Derivation
PSBT_IN_BIP32_DERIVATION
FinalScriptSig
PSBT_IN_FINAL_SCRIPTSIG
FinalWitness
PSBT_IN_FINAL_SCRIPTWITNESS
PorCommitment
PSBT_IN_POR_COMMITMENT
Ripemd160
PSBT_IN_RIPEMD160
Sha256
PSBT_IN_SHA256
Hash160
PSBT_IN_HASH160
Hash256
PSBT_IN_HASH256
PreviousTxid
PSBT_IN_PREVIOUS_TXID
OutputIndex
PSBT_IN_OUTPUT_INDEX
Sequence
PSBT_IN_SEQUENCE
RequiredTimeLock
PSBT_IN_REQUIRED_TIME_LOCKTIME
RequiredHeightLock
PSBT_IN_REQUIRED_HEIGHT_LOCKTIME
TapKeySig
PSBT_IN_TAP_KEY_SIG
TapScriptSig
PSBT_IN_TAP_SCRIPT_SIG
TapLeafScript
PSBT_IN_TAP_LEAF_SCRIPT
TapBip32Derivation
PSBT_IN_TAP_BIP32_DERIVATION
TapInternalKey
PSBT_IN_TAP_INTERNAL_KEY
TapMerkleRoot
PSBT_IN_TAP_MERKLE_ROOT
Proprietary
PSBT_IN_PROPRIETARY
Unknown(u8)
All unknown keys
Trait Implementations§
Source§impl KeyType for InputKey
impl KeyType for InputKey
const STANDARD: &'static [InputKey] = _
fn unknown_unchecked(val: u8) -> InputKey
fn from_u8(val: u8) -> InputKey
fn into_u8(self) -> u8
fn has_key_data(self) -> bool
fn present_since(self) -> PsbtVer
fn deprecated_since(self) -> Option<PsbtVer>
fn is_required(self) -> bool
fn is_proprietary(self) -> bool
fn unknown(val: u8) -> Self
fn to_u8(&self) -> u8
fn is_allowed(self, version: PsbtVer) -> bool
Source§impl Ord for InputKey
impl Ord for InputKey
Source§impl PartialOrd for InputKey
impl PartialOrd for InputKey
impl Copy for InputKey
impl Eq for InputKey
impl StructuralPartialEq for InputKey
Auto Trait Implementations§
impl Freeze for InputKey
impl RefUnwindSafe for InputKey
impl Send for InputKey
impl Sync for InputKey
impl Unpin for InputKey
impl UnwindSafe for InputKey
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.