Struct bitcoin_psbt::PSBTInput
source · pub struct PSBTInput {
pub non_witness_utxo: Arc<Transaction>,
pub witness_utxo: TxOut,
pub redeem_script: Script,
pub witness_script: Script,
pub final_script_sig: Script,
pub final_script_witness: ScriptWitness,
pub hd_keypaths: HashMap<PubKey, KeyOriginInfo>,
pub partial_sigs: HashMap<KeyID, SigPair>,
pub unknown: HashMap<Vec<u8>, Vec<u8>>,
pub sighash_type: i32,
}
Expand description
| A structure for PSBTs which contain | per-input information |
Fields§
§non_witness_utxo: Arc<Transaction>
§witness_utxo: TxOut
§redeem_script: Script
§witness_script: Script
§final_script_sig: Script
§final_script_witness: ScriptWitness
§hd_keypaths: HashMap<PubKey, KeyOriginInfo>
§partial_sigs: HashMap<KeyID, SigPair>
§unknown: HashMap<Vec<u8>, Vec<u8>>
§sighash_type: i32
Implementations§
source§impl PSBTInput
impl PSBTInput
pub fn serialize<Stream: GetType + GetVersion + StreamItems>( &self, s: &mut Stream )
pub fn unserialize<Stream: ExactSizeIterator + GetType + StreamItems + GetVersion>( &mut self, s: &mut Stream ) -> Result<(), StdException>
pub fn new<Stream: ExactSizeIterator + GetVersion + GetType + StreamItems>( _0: DeserializeType, s: &mut Stream ) -> Self
pub fn is_null(&self) -> bool
pub fn fill_signature_data(&self, sigdata: &mut SignatureData)
pub fn from_signature_data(&mut self, sigdata: &SignatureData)
pub fn merge(&mut self, input: &PSBTInput)
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for PSBTInput
impl Send for PSBTInput
impl Sync for PSBTInput
impl Unpin for PSBTInput
impl UnwindSafe for PSBTInput
Blanket Implementations§
§impl<T, U> CastInto<U> for Twhere
U: CastFrom<T>,
impl<T, U> CastInto<U> for Twhere U: CastFrom<T>,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> StaticUpcast<T> for T
impl<T> StaticUpcast<T> for T
§unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
Convert type of a const pointer. Read more