fedimint_wallet_common::tweakable

Trait Contract

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

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

Required Methods§

source

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

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: Write>(&self, writer: &mut W) -> Result<()>

source§

impl Contract for PublicKey

source§

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

source§

impl Contract for [u8; 33]

source§

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

Implementors§