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.
This commit is contained in:
Tobin Harding 2021-05-07 10:28:17 +10:00 committed by Alekos Filini
parent aa3707b5b4
commit 12641b9e8f
No known key found for this signature in database
GPG Key ID: 431401E4A4530061

View File

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