fedimint_wallet_common::tweakable

Trait Tweakable

Source
pub trait Tweakable {
    // Required method
    fn tweak<Ctx: Verification + Signing, Ctr: Contract>(
        &self,
        tweak: &Ctr,
        secp: &Secp256k1<Ctx>,
    ) -> Self;
}
Expand description

A key or object containing keys that may be tweaked for pay-to-contract constructions

Required Methods§

Source

fn tweak<Ctx: Verification + Signing, Ctr: Contract>( &self, tweak: &Ctr, secp: &Secp256k1<Ctx>, ) -> Self

Tweak the key with a tweak contract

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Tweakable for Descriptor<CompressedPublicKey>

Source§

fn tweak<Ctx: Verification + Signing, Ctr: Contract>( &self, tweak: &Ctr, secp: &Secp256k1<Ctx>, ) -> Self

Source§

impl Tweakable for PublicKey

Source§

fn tweak<Ctx: Verification + Signing, Ctr: Contract>( &self, tweak: &Ctr, secp: &Secp256k1<Ctx>, ) -> Self

Source§

impl Tweakable for SecretKey

Source§

fn tweak<Ctx: Verification + Signing, Ctr: Contract>( &self, tweak_in: &Ctr, secp: &Secp256k1<Ctx>, ) -> Self

Implementors§