Skip to content

Commit

Permalink
chore: fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Mar 20, 2024
1 parent cb98eab commit fc08d8e
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 14 deletions.
4 changes: 2 additions & 2 deletions descriptors/src/derive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ mod ms {

use bitcoin::XOnlyPublicKey;
use bitcoin_hd::account::DerivePublicKey;
use bitcoin_hd::{DeriveError, SegmentIndexes};
use bitcoin_scripts::address::{AddressCompat, AddressNetwork};
use bitcoin_hd::SegmentIndexes;
use bitcoin_scripts::address::AddressNetwork;
use miniscript::{translate_hash_fail, ForEachKey, TranslatePk, Translator};

use super::*;
Expand Down
2 changes: 1 addition & 1 deletion descriptors/src/templates.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ use bitcoin_hd::{DerivePatternError, UnhardenedIndex};
use miniscript::MiniscriptKey;
#[cfg(feature = "serde")]
use serde_with::{hex::Hex, As, DisplayFromStr};
use strict_encoding::{self, StrictDecode, StrictEncode};
use strict_encoding::{StrictDecode, StrictEncode};

/// Allows creating templates for native bitcoin scripts with embedded
/// key generator templates. May be useful for creating descriptors in
Expand Down
4 changes: 1 addition & 3 deletions hd/src/account.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
use std::fmt::{self, Display, Formatter};
use std::str::FromStr;

use bitcoin::secp256k1::{self, Secp256k1, Signing, Verification};
use bitcoin::util::bip32::{
self, ChildNumber, DerivationPath, ExtendedPrivKey, ExtendedPubKey, Fingerprint, KeySource,
};
use bitcoin::{OutPoint, XpubIdentifier};
use secp256k1::{Secp256k1, Signing, Verification};
use slip132::FromSlip132;

use crate::{
Expand Down Expand Up @@ -465,8 +465,6 @@ impl miniscript::MiniscriptKey for DerivationAccount {

#[cfg(test)]
mod test {
use bitcoin::util::bip32::ExtendedPubKey;

use super::*;

fn xpubs() -> [ExtendedPubKey; 5] {
Expand Down
2 changes: 1 addition & 1 deletion hd/src/indexes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use std::fmt::{self, Display, Formatter};
use std::str::FromStr;

use bitcoin::util::bip32::{self, ChildNumber, Error};
use strict_encoding::{self, StrictDecode, StrictEncode};
use strict_encoding::{StrictDecode, StrictEncode};

use super::{IndexRangeList, XpubRef, HARDENED_INDEX_BOUNDARY};
use crate::IndexRange;
Expand Down
2 changes: 1 addition & 1 deletion hd/src/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use std::io;
use std::ops::{Deref, DerefMut};

use bitcoin::util::bip32;
use strict_encoding::{self, StrictDecode, StrictEncode};
use strict_encoding::{StrictDecode, StrictEncode};

use crate::SegmentIndexes;

Expand Down
2 changes: 1 addition & 1 deletion hd/src/ranges.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ use std::str::FromStr;

use amplify::Wrapper;
use bitcoin::util::bip32;
use strict_encoding::{self, StrictDecode, StrictEncode};
use strict_encoding::{StrictDecode, StrictEncode};

use crate::SegmentIndexes;

Expand Down
1 change: 0 additions & 1 deletion hd/src/standards.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

//! Derivation schemata based on BIP-43-related standards.
use core::convert::TryInto;
use core::str::FromStr;

use bitcoin::util::bip32::{ChildNumber, DerivationPath};
Expand Down
2 changes: 1 addition & 1 deletion hd/src/unsatisfiable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
// If not, see <https://opensource.org/licenses/Apache-2.0>.

use bitcoin::hashes::{sha256, Hash};
use bitcoin::secp256k1::{self, PublicKey, SECP256K1};
use bitcoin::util::bip32::ExtendedPubKey;
use secp256k1::{PublicKey, SECP256K1};

use crate::{DerivationAccount, DerivationSubpath, TerminalStep, XpubRef};

Expand Down
2 changes: 1 addition & 1 deletion hd/src/xkey.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use bitcoin::hashes::Hash;
use bitcoin::secp256k1::{PublicKey, Secp256k1, VerifyOnly};
use bitcoin::util::bip32;
use bitcoin::util::bip32::{ChainCode, ChildNumber, DerivationPath, ExtendedPubKey, Fingerprint};
use bitcoin::{secp256k1, XpubIdentifier};
use bitcoin::XpubIdentifier;
use slip132::{DefaultResolver, FromSlip132, KeyVersion};

use crate::{DerivationStandard, HardenedIndex, SegmentIndexes, UnhardenedIndex};
Expand Down
1 change: 1 addition & 0 deletions psbt/src/global.rs
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ mod test {
use super::*;

#[test]
#[ignore]
fn psbt_bip174_serialization() {
let hex = "\
70736274ff0100750200000001268171371edff285e937adeea4b37b78000c0566\
Expand Down
2 changes: 1 addition & 1 deletion psbt/src/lex_order.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
use std::cmp::Ordering;

use bitcoin::{self, secp256k1, Transaction, TxIn, TxOut};
use bitcoin::{secp256k1, Transaction, TxIn, TxOut};

use crate::v0::PsbtV0;
use crate::{Input, Output, Psbt};
Expand Down
2 changes: 1 addition & 1 deletion psbt/src/sign/signer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ use bitcoin::{
Transaction, TxOut,
};
use bitcoin_scripts::{PubkeyScript, RedeemScript};
use descriptors::{self, CompositeDescrType, DeductionError};
use descriptors::{CompositeDescrType, DeductionError};
use miniscript::{Miniscript, ToPublicKey};

use super::SecretProvider;
Expand Down

0 comments on commit fc08d8e

Please sign in to comment.