Trait crypto::signatures::ternary::Signature[][src]

pub trait Signature {
    type Error;
    fn size(&self) -> usize;
fn from_trits(buf: TritBuf<T1B1Buf>) -> Result<Self, Self::Error>
    where
        Self: Sized
;
fn as_trits(&self) -> &Trits<T1B1>; }
This is supported on crate feature ternary_signatures only.

A ternary signature.

Associated Types

type Error[src]

Errors occuring while handling public keys.

Loading content...

Required methods

fn size(&self) -> usize[src]

Returns the size of the signature.

fn from_trits(buf: TritBuf<T1B1Buf>) -> Result<Self, Self::Error> where
    Self: Sized
[src]

Creates a signature from trits.

fn as_trits(&self) -> &Trits<T1B1>[src]

Interprets the signature as trits.

Loading content...

Implementors

impl<S: Sponge + Default> Signature for WotsSignature<S>[src]

This is supported on crate feature wots_deprecated_do_not_use only.

type Error = Error

Loading content...