fedimint_wallet_client::tweakable

Trait Contract

source
pub trait Contract {
    // Required method
    fn encode<W>(&self, writer: &mut W) -> Result<(), Error>
       where W: Write;
}
Expand description

An object that can be used as a Ricardian contract to tweak a key

Required Methods§

source

fn encode<W>(&self, writer: &mut W) -> Result<(), Error>
where W: Write,

Serialize the contract in a deterministic way to be used as a tweak

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Contract for Vec<u8>

source§

fn encode<W>(&self, writer: &mut W) -> Result<(), Error>
where W: Write,

source§

impl Contract for PublicKey

source§

fn encode<W>(&self, writer: &mut W) -> Result<(), Error>
where W: Write,

source§

impl Contract for [u8; 33]

source§

fn encode<W>(&self, writer: &mut W) -> Result<(), Error>
where W: Write,

Implementors§