accessing XOnlyPublicKey from bitcoin::taproot

This commit is contained in:
aagbotemi 2025-04-19 15:50:39 +01:00
parent c85648cfd4
commit 87d1210156
No known key found for this signature in database
GPG Key ID: 37C137D831F0A852
1 changed files with 4 additions and 1 deletions

View File

@ -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