Encode

Trait Encode 

Source
pub trait Encode {
    type Output;

    // Required method
    fn encode(&self) -> Self::Output;
}

Required Associated Types§

Required Methods§

Source

fn encode(&self) -> Self::Output

Implementations on Foreign Types§

Source§

impl Encode for ContentAddress

Source§

type Output = [i64; 4]

Source§

fn encode(&self) -> Self::Output

Source§

impl Encode for PredicateAddress

Source§

type Output = ([i64; 4], [i64; 4])

Source§

fn encode(&self) -> Self::Output

Source§

impl Encode for RecoverableSignature

Source§

fn encode(&self) -> Self::Output

Convert an ECDSA signature into the form expected by the generated ABI type.

Source§

type Output = ([i64; 4], [i64; 4], i64)

Source§

impl Encode for PublicKey

Source§

fn encode(&self) -> Self::Output

Convert a public key into the form expected by the generated ABI type.

Source§

type Output = ([i64; 4], i64)

Implementors§