From 12641b9e8fa13cbc5eb34f55d18b423afc505aad Mon Sep 17 00:00:00 2001 From: Tobin Harding Date: Fri, 7 May 2021 10:28:17 +1000 Subject: [PATCH] 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. --- src/wallet/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wallet/mod.rs b/src/wallet/mod.rs index cd78ed60..71fc5d7d 100644 --- a/src/wallet/mod.rs +++ b/src/wallet/mod.rs @@ -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, };