Skip to content

Commit 0c3e266

Browse files
committed
Use secp256k1 qualified path instead of underscore
We can use the qualified path for create type aliases, this is arguably easier to read and reduces the number of LOC.
1 parent f344fb3 commit 0c3e266

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/util/schnorr.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,18 @@
2020
use core::fmt;
2121
use prelude::*;
2222

23-
use secp256k1::{XOnlyPublicKey as _XOnlyPublicKey, KeyPair as _KeyPair};
24-
2523
use secp256k1::{self, Secp256k1, Verification, constants};
2624
use hashes::Hash;
2725
use util::taproot::{TapBranchHash, TapTweakHash};
2826
use SchnorrSighashType;
2927

3028
/// Deprecated re-export of [`secp256k1::XOnlyPublicKey`]
3129
#[deprecated(since = "0.28.0", note = "Please use `util::key::XOnlyPublicKey` instead")]
32-
pub type XOnlyPublicKey = _XOnlyPublicKey;
30+
pub type XOnlyPublicKey = secp256k1::XOnlyPublicKey;
3331

3432
/// Deprecated re-export of [`secp256k1::KeyPair`]
3533
#[deprecated(since = "0.28.0", note = "Please use `util::key::KeyPair` instead")]
36-
pub type KeyPair = _KeyPair;
34+
pub type KeyPair = secp256k1::KeyPair;
3735

3836
/// Untweaked BIP-340 X-coord-only public key
3937
pub type UntweakedPublicKey = ::XOnlyPublicKey;

0 commit comments

Comments
 (0)