Skip to content

Commit 2ee3b3f

Browse files
committed
Tidy up bitcoin::secp256k1 imports
1 parent b0dce2a commit 2ee3b3f

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

lightning/src/sign/mod.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,9 @@ use bitcoin::hashes::sha256::Hash as Sha256;
2626
use bitcoin::hashes::sha256d::Hash as Sha256dHash;
2727
use bitcoin::hash_types::WPubkeyHash;
2828

29-
use bitcoin::secp256k1::{SecretKey, PublicKey, Scalar};
30-
use bitcoin::secp256k1::{Secp256k1, ecdsa::Signature, Signing};
29+
use bitcoin::secp256k1::{PublicKey, Scalar, Secp256k1, SecretKey, Signing};
3130
use bitcoin::secp256k1::ecdh::SharedSecret;
32-
use bitcoin::secp256k1::ecdsa::RecoverableSignature;
31+
use bitcoin::secp256k1::ecdsa::{RecoverableSignature, Signature};
3332
use bitcoin::{PackedLockTime, secp256k1, Sequence, Witness};
3433

3534
use crate::util::transaction_utils;

lightning/src/util/test_utils.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ use bitcoin::blockdata::block::Block;
4141
use bitcoin::network::constants::Network;
4242
use bitcoin::hash_types::{BlockHash, Txid};
4343

44-
use bitcoin::secp256k1::{SecretKey, PublicKey, Secp256k1, ecdsa::Signature, Scalar};
44+
use bitcoin::secp256k1::{PublicKey, Scalar, Secp256k1, SecretKey};
4545
use bitcoin::secp256k1::ecdh::SharedSecret;
46-
use bitcoin::secp256k1::ecdsa::RecoverableSignature;
46+
use bitcoin::secp256k1::ecdsa::{RecoverableSignature, Signature};
4747

4848
use regex;
4949

0 commit comments

Comments
 (0)