diff --git a/bip-0360/ref-impl/rust/examples/schnorr_example.rs b/bip-0360/ref-impl/rust/examples/schnorr_example.rs index 4723d99bd5..978c5d8031 100644 --- a/bip-0360/ref-impl/rust/examples/schnorr_example.rs +++ b/bip-0360/ref-impl/rust/examples/schnorr_example.rs @@ -1,4 +1,3 @@ -use std::env; use log::info; use once_cell::sync::Lazy; use bitcoin::key::{Secp256k1}; diff --git a/bip-0360/ref-impl/rust/examples/slh_dsa_verification_example.rs b/bip-0360/ref-impl/rust/examples/slh_dsa_verification_example.rs index c6c965e7a0..026de3903b 100644 --- a/bip-0360/ref-impl/rust/examples/slh_dsa_verification_example.rs +++ b/bip-0360/ref-impl/rust/examples/slh_dsa_verification_example.rs @@ -1,12 +1,6 @@ -use std::env; -use log::info; -use once_cell::sync::Lazy; -use bitcoin::hashes::{sha256::Hash, Hash as HashTrait}; use rand::{rng, RngCore}; -use bitcoinpqc::{ - generate_keypair, public_key_size, secret_key_size, sign, signature_size, verify, Algorithm, KeyPair, -}; +use bitcoinpqc::{generate_keypair, sign, verify, Algorithm, KeyPair}; fn main() { let _ = env_logger::try_init(); diff --git a/bip-0360/ref-impl/rust/src/bin/slh_dsa_key_gen.rs b/bip-0360/ref-impl/rust/src/bin/slh_dsa_key_gen.rs index 999d487d3d..4cda96fe0b 100644 --- a/bip-0360/ref-impl/rust/src/bin/slh_dsa_key_gen.rs +++ b/bip-0360/ref-impl/rust/src/bin/slh_dsa_key_gen.rs @@ -1,10 +1,7 @@ -use std::env; use log::info; use rand::{rng, RngCore}; -use bitcoinpqc::{ - generate_keypair, public_key_size, secret_key_size, Algorithm, KeyPair, -}; +use bitcoinpqc::{generate_keypair, public_key_size, secret_key_size, Algorithm, KeyPair}; fn main() { let _ = env_logger::try_init(); diff --git a/bip-0360/ref-impl/rust/src/data_structures.rs b/bip-0360/ref-impl/rust/src/data_structures.rs index 11f653aec7..141378a848 100644 --- a/bip-0360/ref-impl/rust/src/data_structures.rs +++ b/bip-0360/ref-impl/rust/src/data_structures.rs @@ -4,7 +4,7 @@ use log::debug; // Add imports for the unified keypair use bitcoin::secp256k1::{SecretKey, XOnlyPublicKey}; -use bitcoinpqc::{KeyPair, Algorithm}; +use bitcoinpqc::KeyPair; /// Enum representing the type of leaf script to create #[derive(Debug, Clone, Copy, PartialEq, Eq)] diff --git a/bip-0360/ref-impl/rust/src/lib.rs b/bip-0360/ref-impl/rust/src/lib.rs index e9c9816d14..7e65ce0020 100644 --- a/bip-0360/ref-impl/rust/src/lib.rs +++ b/bip-0360/ref-impl/rust/src/lib.rs @@ -24,7 +24,7 @@ use bitcoinpqc::{ generate_keypair, public_key_size, secret_key_size, Algorithm, KeyPair, sign, verify, }; -use data_structures::{SpendDetails, UtxoReturn, TaptreeReturn, UnifiedKeypair, MultiKeypair, LeafScriptType, MixedLeafInfo}; +use data_structures::{SpendDetails, UtxoReturn, TaptreeReturn, UnifiedKeypair, MultiKeypair, LeafScriptType}; /* Secp256k1 implements the Signing trait when it's initialized in signing mode. It's important to note that Secp256k1 has different capabilities depending on how it's constructed: diff --git a/bip-0360/ref-impl/rust/tests/p2mr_construction.rs b/bip-0360/ref-impl/rust/tests/p2mr_construction.rs index 38d790d104..3eac4e4b64 100644 --- a/bip-0360/ref-impl/rust/tests/p2mr_construction.rs +++ b/bip-0360/ref-impl/rust/tests/p2mr_construction.rs @@ -10,7 +10,7 @@ use once_cell::sync::Lazy; use p2mr_ref::data_structures::{TVScriptTree, TestVector, Direction, TestVectors, UtxoReturn}; use p2mr_ref::error::P2MRError; -use p2mr_ref::{create_p2mr_utxo, tagged_hash}; +use p2mr_ref::create_p2mr_utxo; // This file contains tests that execute against the BIP360 script-path-only test vectors. diff --git a/bip-0360/ref-impl/rust/tests/p2mr_pqc_construction.rs b/bip-0360/ref-impl/rust/tests/p2mr_pqc_construction.rs index a5ca855cad..6d0b5a903e 100644 --- a/bip-0360/ref-impl/rust/tests/p2mr_pqc_construction.rs +++ b/bip-0360/ref-impl/rust/tests/p2mr_pqc_construction.rs @@ -10,7 +10,7 @@ use once_cell::sync::Lazy; use p2mr_ref::data_structures::{TVScriptTree, TestVector, Direction, TestVectors, UtxoReturn}; use p2mr_ref::error::P2MRError; -use p2mr_ref::{create_p2mr_utxo, tagged_hash}; +use p2mr_ref::create_p2mr_utxo; // This file contains tests that execute against the BIP360 script-path-only test vectors.