pub struct BitcoinTaprootOps { /* private fields */ }Expand description
Taproot operations implemented with bitcoin/secp256k1 types.
Implementations§
Trait Implementations§
Source§impl Debug for BitcoinTaprootOps
impl Debug for BitcoinTaprootOps
Source§impl TaprootOps for BitcoinTaprootOps
impl TaprootOps for BitcoinTaprootOps
Source§fn parse_group_key(&self, key: &SerializedKey) -> Result<Self::PubKey, OpsError>
fn parse_group_key(&self, key: &SerializedKey) -> Result<Self::PubKey, OpsError>
Parses a raw group key into the backend representation.
Source§fn parse_internal_key(
&self,
key: &SerializedKey,
) -> Result<Self::PubKey, OpsError>
fn parse_internal_key( &self, key: &SerializedKey, ) -> Result<Self::PubKey, OpsError>
Parses an internal key into the backend representation.
Source§fn add_tweak(
&self,
pubkey: &Self::PubKey,
tweak: [u8; 32],
) -> Result<Self::PubKey, OpsError>
fn add_tweak( &self, pubkey: &Self::PubKey, tweak: [u8; 32], ) -> Result<Self::PubKey, OpsError>
Adds a scalar tweak to a public key.
Source§fn taproot_output_key(
&self,
internal_key: &Self::PubKey,
tapscript_root: Option<[u8; 32]>,
) -> Result<SerializedKey, OpsError>
fn taproot_output_key( &self, internal_key: &Self::PubKey, tapscript_root: Option<[u8; 32]>, ) -> Result<SerializedKey, OpsError>
Computes the Taproot output key for an internal key and optional tapscript root.
Auto Trait Implementations§
impl Freeze for BitcoinTaprootOps
impl RefUnwindSafe for BitcoinTaprootOps
impl Send for BitcoinTaprootOps
impl Sync for BitcoinTaprootOps
impl Unpin for BitcoinTaprootOps
impl UnsafeUnpin for BitcoinTaprootOps
impl UnwindSafe for BitcoinTaprootOps
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request