Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
ci: screw up imports for rust-lang/rust#121684
  • Loading branch information
apoelstra committed Feb 27, 2024
commit 220f101f4cb4631f0a6c1d8226081a3acaee0ebf
3 changes: 2 additions & 1 deletion examples/psbt_sign_finalize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ use miniscript::bitcoin::consensus::encode::deserialize;
use miniscript::bitcoin::hashes::hex::FromHex;
use miniscript::bitcoin::psbt::{self, Psbt};
use miniscript::bitcoin::sighash::SighashCache;
//use miniscript::bitcoin::secp256k1; // https://github.com/rust-lang/rust/issues/121684
use miniscript::bitcoin::{
secp256k1, transaction, Address, Amount, Network, OutPoint, PrivateKey, Script, Sequence,
transaction, Address, Amount, Network, OutPoint, PrivateKey, Script, Sequence,
Transaction, TxIn, TxOut,
};
use miniscript::psbt::{PsbtExt, PsbtInputExt};
Expand Down
2 changes: 1 addition & 1 deletion examples/sign_multisig.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use std::collections::HashMap;
use std::str::FromStr;

use bitcoin::blockdata::witness::Witness;
use bitcoin::{absolute, ecdsa, secp256k1, transaction, Amount, Sequence};
use bitcoin::{absolute, ecdsa, transaction, Amount, Sequence};

fn main() {
let mut tx = spending_transaction();
Expand Down
2 changes: 1 addition & 1 deletion examples/verify_tx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use std::str::FromStr;

use miniscript::bitcoin::consensus::Decodable;
use miniscript::bitcoin::secp256k1::{self, Secp256k1};
use miniscript::bitcoin::secp256k1::Secp256k1;
use miniscript::bitcoin::{absolute, sighash, Sequence};
use miniscript::interpreter::KeySigPair;

Expand Down
2 changes: 1 addition & 1 deletion src/descriptor/key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1142,7 +1142,7 @@ impl Serialize for DescriptorPublicKey {
mod test {
use core::str::FromStr;

use bitcoin::{bip32, secp256k1};
use bitcoin::bip32;
#[cfg(feature = "serde")]
use serde_test::{assert_tokens, Token};

Expand Down
4 changes: 3 additions & 1 deletion src/descriptor/tr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ use bitcoin::taproot::{
LeafVersion, TaprootBuilder, TaprootSpendInfo, TAPROOT_CONTROL_BASE_SIZE,
TAPROOT_CONTROL_MAX_NODE_COUNT, TAPROOT_CONTROL_NODE_SIZE,
};
use bitcoin::{opcodes, secp256k1, Address, Network, ScriptBuf};
#[cfg(not(test))] // https://github.com/rust-lang/rust/issues/121684
use bitcoin::secp256k1;
use bitcoin::{opcodes, Address, Network, ScriptBuf};
use sync::Arc;

use super::checksum::{self, verify_checksum};
Expand Down
4 changes: 3 additions & 1 deletion src/interpreter/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ use std::error;

use bitcoin::hashes::hash160;
use bitcoin::hex::DisplayHex;
use bitcoin::{secp256k1, taproot};
#[cfg(not(test))] // https://github.com/rust-lang/rust/issues/121684
use bitcoin::secp256k1;
use bitcoin::taproot;

use super::BitcoinKey;
use crate::prelude::*;
Expand Down
1 change: 0 additions & 1 deletion src/miniscript/iter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,6 @@ impl<'a, Pk: MiniscriptKey, Ctx: ScriptContext> Iterator for PkIter<'a, Pk, Ctx>
#[cfg(test)]
pub mod test {
use bitcoin::hashes::{hash160, ripemd160, sha256, sha256d, Hash};
use bitcoin::secp256k1;

use super::Miniscript;
use crate::miniscript::context::Segwitv0;
Expand Down
2 changes: 1 addition & 1 deletion src/miniscript/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ mod tests {
use bitcoin::hashes::{hash160, sha256, Hash};
use bitcoin::secp256k1::XOnlyPublicKey;
use bitcoin::taproot::TapLeafHash;
use bitcoin::{secp256k1, Sequence};
use bitcoin::Sequence;
use sync::Arc;

use super::{Miniscript, ScriptContext, Segwitv0, Tap};
Expand Down
3 changes: 1 addition & 2 deletions src/policy/compiler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
//! Optimizing compiler from concrete policies to Miniscript
//!

use core::convert::From;
use core::{cmp, f64, fmt, hash, mem};
#[cfg(feature = "std")]
use std::error;
Expand Down Expand Up @@ -1152,7 +1151,7 @@ mod tests {
use core::str::FromStr;

use bitcoin::blockdata::{opcodes, script};
use bitcoin::{hashes, secp256k1, Sequence};
use bitcoin::{hashes, Sequence};

use super::*;
use crate::miniscript::{Legacy, Segwitv0, Tap};
Expand Down
4 changes: 3 additions & 1 deletion src/psbt/finalizer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ use core::mem;

use bitcoin::hashes::hash160;
use bitcoin::key::XOnlyPublicKey;
use bitcoin::secp256k1::{self, Secp256k1};
#[cfg(not(test))] // https://github.com/rust-lang/rust/issues/121684
use bitcoin::secp256k1;
use bitcoin::secp256k1::Secp256k1;
use bitcoin::sighash::Prevouts;
use bitcoin::taproot::LeafVersion;
use bitcoin::{PublicKey, Script, ScriptBuf, TxOut, Witness};
Expand Down
4 changes: 3 additions & 1 deletion src/psbt/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ use std::error;

use bitcoin::hashes::{hash160, sha256d, Hash};
use bitcoin::psbt::{self, Psbt};
use bitcoin::secp256k1::{self, Secp256k1, VerifyOnly};
#[cfg(not(test))] // https://github.com/rust-lang/rust/issues/121684
use bitcoin::secp256k1;
use bitcoin::secp256k1::{Secp256k1, VerifyOnly};
use bitcoin::sighash::{self, SighashCache};
use bitcoin::taproot::{self, ControlBlock, LeafVersion, TapLeafHash};
use bitcoin::{absolute, bip32, transaction, Script, ScriptBuf, Sequence};
Expand Down
1 change: 1 addition & 0 deletions src/test_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ use std::str::FromStr;

use bitcoin::hashes::{hash160, ripemd160, sha256};
use bitcoin::key::XOnlyPublicKey;
#[cfg(not(test))] // https://github.com/rust-lang/rust/issues/121684
use bitcoin::secp256k1;

use crate::miniscript::context::SigType;
Expand Down