use std::collections::HashMap; use blockdata::script::Script; use consensus::encode; use util::bip32::{DerivationPath, Fingerprint}; use util::key::PublicKey; use util::psbt; use util::psbt::map::Map; use util::psbt::raw; use util::psbt::Error; /// A key-value map for an output of the corresponding index in the unsigned /// transaction. #[derive(Clone, Default, Debug, PartialEq)] pub struct Output { /// The redeem script for this output. pub redeem_script: Option