Skip to content

Commit 12641b9

Browse files
tchardingafilini
authored andcommitted
Use PsbtKey instead of PSBT
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.
1 parent aa3707b commit 12641b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/wallet/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ use bitcoin::secp256k1::Secp256k1;
2323

2424
use bitcoin::consensus::encode::serialize;
2525
use bitcoin::util::base58;
26-
use bitcoin::util::psbt::raw::Key as PSBTKey;
26+
use bitcoin::util::psbt::raw::Key as PsbtKey;
2727
use bitcoin::util::psbt::Input;
2828
use bitcoin::util::psbt::PartiallySignedTransaction as Psbt;
2929
use bitcoin::{Address, Network, OutPoint, Script, SigHashType, Transaction, TxOut, Txid};
@@ -1242,7 +1242,7 @@ where
12421242
for xpub in all_xpubs {
12431243
let serialized_xpub = base58::from_check(&xpub.xkey.to_string())
12441244
.expect("Internal serialization error");
1245-
let key = PSBTKey {
1245+
let key = PsbtKey {
12461246
type_value: 0x01,
12471247
key: serialized_xpub,
12481248
};

0 commit comments

Comments
 (0)