#[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,
RequiredHeighLock,
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
RequiredHeighLock
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 [Self] = _
fn unknown_unchecked(val: u8) -> Self
fn from_u8(val: u8) -> Self
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 PartialEq for InputKey
impl PartialEq for InputKey
source§impl PartialOrd for InputKey
impl PartialOrd for InputKey
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for InputKey
impl Eq for InputKey
impl StructuralEq for InputKey
impl StructuralPartialEq for InputKey
Auto Trait Implementations§
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.