fedimint_wallet_client::tweakable

Trait Tweakable

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

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

Required Methods§

Source

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

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, Ctr>( &self, tweak: &Ctr, secp: &Secp256k1<Ctx>, ) -> Descriptor<CompressedPublicKey>
where Ctx: Verification + Signing, Ctr: Contract,

Source§

impl Tweakable for PublicKey

Source§

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

Source§

impl Tweakable for SecretKey

Source§

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

Implementors§