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

Object Safety§

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§