accessing XOnlyPublicKey from bitcoin::taproot
This commit is contained in:
parent
c85648cfd4
commit
87d1210156
|
@ -22,7 +22,7 @@ use secp256k1::{Scalar, Secp256k1};
|
||||||
|
|
||||||
use crate::consensus::Encodable;
|
use crate::consensus::Encodable;
|
||||||
use crate::crypto::key::{
|
use crate::crypto::key::{
|
||||||
SerializedXOnlyPublicKey, TapTweak, TweakedPublicKey, UntweakedPublicKey, XOnlyPublicKey,
|
SerializedXOnlyPublicKey, TapTweak, TweakedPublicKey, UntweakedPublicKey,
|
||||||
};
|
};
|
||||||
use crate::prelude::{BTreeMap, BTreeSet, BinaryHeap, Vec};
|
use crate::prelude::{BTreeMap, BTreeSet, BinaryHeap, Vec};
|
||||||
use crate::{Script, ScriptBuf};
|
use crate::{Script, ScriptBuf};
|
||||||
|
@ -36,6 +36,9 @@ pub use merkle_branch::TaprootMerkleBranch;
|
||||||
#[doc(inline)]
|
#[doc(inline)]
|
||||||
pub use merkle_branch::TaprootMerkleBranchBuf;
|
pub use merkle_branch::TaprootMerkleBranchBuf;
|
||||||
|
|
||||||
|
#[doc(inline)]
|
||||||
|
pub use crate::XOnlyPublicKey;
|
||||||
|
|
||||||
type ControlBlockArrayVec = internals::array_vec::ArrayVec<u8, TAPROOT_CONTROL_MAX_SIZE>;
|
type ControlBlockArrayVec = internals::array_vec::ArrayVec<u8, TAPROOT_CONTROL_MAX_SIZE>;
|
||||||
|
|
||||||
// Taproot test vectors from BIP-341 state the hashes without any reversing
|
// Taproot test vectors from BIP-341 state the hashes without any reversing
|
||||||
|
|
Loading…
Reference in New Issue