[][src]Trait iota_signing_preview::PublicKey

pub trait PublicKey {
    type Signature: Signature;
    type Error;
    fn verify(
        &self,
        message: &[i8],
        signature: &Self::Signature
    ) -> Result<bool, Self::Error>;
fn from_buf(buf: TritBuf) -> Self;
fn as_bytes(&self) -> &[i8];
fn trits(&self) -> &Trits; }

Associated Types

Loading content...

Required methods

fn verify(
    &self,
    message: &[i8],
    signature: &Self::Signature
) -> Result<bool, Self::Error>

fn from_buf(buf: TritBuf) -> Self

fn as_bytes(&self) -> &[i8]

fn trits(&self) -> &Trits

Loading content...

Implementors

impl<S, K> PublicKey for MssPublicKey<S, K> where
    S: Sponge + Default,
    K: PublicKey,
    <K as PublicKey>::Signature: RecoverableSignature
[src]

type Signature = MssSignature<S>

type Error = MssError

impl<S: Sponge + Default> PublicKey for WotsPublicKey<S>[src]

type Signature = WotsSignature<S>

type Error = WotsError

Loading content...