diff --git a/src/util/psbt/map/input.rs b/src/util/psbt/map/input.rs index 4c9f0506..926bf899 100644 --- a/src/util/psbt/map/input.rs +++ b/src/util/psbt/map/input.rs @@ -29,7 +29,7 @@ use util::psbt::raw; use util::psbt::serialize::Deserialize; use util::psbt::{Error, error}; -use schnorr; +use ::{SchnorrSig}; use util::taproot::{ControlBlock, LeafVersion, TapLeafHash, TapBranchHash}; /// Type: Non-Witness UTXO PSBT_IN_NON_WITNESS_UTXO = 0x00 @@ -120,10 +120,10 @@ pub struct Input { #[cfg_attr(feature = "serde", serde(with = "::serde_utils::btreemap_byte_values"))] pub hash256_preimages: BTreeMap>, /// Serialized schnorr signature with sighash type for key spend - pub tap_key_sig: Option, + pub tap_key_sig: Option, /// Map of | with signature #[cfg_attr(feature = "serde", serde(with = "::serde_utils::btreemap_as_seq"))] - pub tap_script_sigs: BTreeMap<(XOnlyPublicKey, TapLeafHash), schnorr::SchnorrSig>, + pub tap_script_sigs: BTreeMap<(XOnlyPublicKey, TapLeafHash), SchnorrSig>, /// Map of Control blocks to Script version pair #[cfg_attr(feature = "serde", serde(with = "::serde_utils::btreemap_as_seq"))] pub tap_scripts: BTreeMap, @@ -209,12 +209,12 @@ impl Map for Input { } PSBT_IN_TAP_KEY_SIG => { impl_psbt_insert_pair! { - self.tap_key_sig <= | + self.tap_key_sig <= | } } PSBT_IN_TAP_SCRIPT_SIG => { impl_psbt_insert_pair! { - self.tap_script_sigs <= | + self.tap_script_sigs <= | } } PSBT_IN_TAP_LEAF_SCRIPT=> { @@ -310,11 +310,11 @@ impl Map for Input { } impl_psbt_get_pair! { - rv.push(self.tap_key_sig as |>) + rv.push(self.tap_key_sig as |) } impl_psbt_get_pair! { - rv.push(self.tap_script_sigs as |>) + rv.push(self.tap_script_sigs as |) } impl_psbt_get_pair! { diff --git a/src/util/psbt/serialize.rs b/src/util/psbt/serialize.rs index 467cba84..aa0e4035 100644 --- a/src/util/psbt/serialize.rs +++ b/src/util/psbt/serialize.rs @@ -20,7 +20,7 @@ use prelude::*; -use ::{EcdsaSig, io}; +use io; use blockdata::script::Script; use blockdata::transaction::{EcdsaSigHashType, Transaction, TxOut}; @@ -28,7 +28,7 @@ use consensus::encode::{self, serialize, Decodable, Encodable, deserialize_parti use secp256k1::{self, XOnlyPublicKey}; use util::bip32::{ChildNumber, Fingerprint, KeySource}; use hashes::{hash160, ripemd160, sha256, sha256d, Hash}; -use util::ecdsa::PublicKey; +use util::ecdsa::{PublicKey, EcdsaSig}; use util::psbt; use util::taproot::{TapBranchHash, TapLeafHash, ControlBlock, LeafVersion}; use schnorr;