Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
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
1 change: 0 additions & 1 deletion bip-0360/ref-impl/rust/examples/schnorr_example.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use std::env;
use log::info;
use once_cell::sync::Lazy;
use bitcoin::key::{Secp256k1};
Expand Down
Original file line number Diff line number Diff line change
@@ -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();
Expand Down
5 changes: 1 addition & 4 deletions bip-0360/ref-impl/rust/src/bin/slh_dsa_key_gen.rs
Original file line number Diff line number Diff line change
@@ -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();
Expand Down
2 changes: 1 addition & 1 deletion bip-0360/ref-impl/rust/src/data_structures.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
2 changes: 1 addition & 1 deletion bip-0360/ref-impl/rust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion bip-0360/ref-impl/rust/tests/p2mr_construction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion bip-0360/ref-impl/rust/tests/p2mr_pqc_construction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down