]> Untitled Git - bdk/commitdiff
Use PsbtKey instead of PSBT
authorTobin Harding <me@tobin.cc>
Fri, 7 May 2021 00:28:17 +0000 (10:28 +1000)
committerAlekos Filini <alekos.filini@gmail.com>
Fri, 7 May 2021 14:29:53 +0000 (16:29 +0200)
We recently converted uses of `PSBT` -> `Psbt` inline with idiomatic
Rust acronym identifiers. Do the same to `PSBTKey`.

Use `PsbtKey` instead of `PSBTKey` when aliasing the import of
`psbt::raw::Key` from `bitcoin` library.

src/wallet/mod.rs

index cd78ed6062539509ab3e462e6fc3cc483f8cc0ba..71fc5d7d2edef0b9e9fdc1494dbba201a9afd3fe 100644 (file)
@@ -23,7 +23,7 @@ use bitcoin::secp256k1::Secp256k1;
 
 use bitcoin::consensus::encode::serialize;
 use bitcoin::util::base58;
-use bitcoin::util::psbt::raw::Key as PSBTKey;
+use bitcoin::util::psbt::raw::Key as PsbtKey;
 use bitcoin::util::psbt::Input;
 use bitcoin::util::psbt::PartiallySignedTransaction as Psbt;
 use bitcoin::{Address, Network, OutPoint, Script, SigHashType, Transaction, TxOut, Txid};
@@ -1242,7 +1242,7 @@ where
             for xpub in all_xpubs {
                 let serialized_xpub = base58::from_check(&xpub.xkey.to_string())
                     .expect("Internal serialization error");
-                let key = PSBTKey {
+                let key = PsbtKey {
                     type_value: 0x01,
                     key: serialized_xpub,
                 };