Struct bitcoin::util::psbt::Global [−][src]
pub struct Global {
pub unsigned_tx: Transaction,
pub version: u32,
pub xpub: BTreeMap<ExtendedPubKey, KeySource>,
pub proprietary: BTreeMap<ProprietaryKey, Vec<u8>>,
pub unknown: BTreeMap<Key, Vec<u8>>,
}A key-value map for global data.
Fields
unsigned_tx: TransactionThe unsigned transaction, scriptSigs and witnesses for each input must be empty.
version: u32The version number of this PSBT. If omitted, the version number is 0.
xpub: BTreeMap<ExtendedPubKey, KeySource>A global map from extended public keys to the used key fingerprint and derivation path as defined by BIP 32
proprietary: BTreeMap<ProprietaryKey, Vec<u8>>Global proprietary key-value pairs.
unknown: BTreeMap<Key, Vec<u8>>Unknown global key-value pairs.
Implementations
impl Global[src]
impl Global[src]pub fn from_unsigned_tx(tx: Transaction) -> Result<Self, Error>[src]
Create a Global from an unsigned transaction, error if not unsigned
Trait Implementations
impl<'de> Deserialize<'de> for Global[src]
impl<'de> Deserialize<'de> for Global[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,