Trait iota_types::crypto::IotaSignature

source ·
pub trait IotaSignature: Sized + ToFromBytes {
    // Required methods
    fn signature_bytes(&self) -> &[u8] ;
    fn public_key_bytes(&self) -> &[u8] ;
    fn scheme(&self) -> SignatureScheme;
    fn verify_secure<T>(
        &self,
        value: &IntentMessage<T>,
        author: IotaAddress,
        scheme: SignatureScheme,
    ) -> IotaResult<()>
       where T: Serialize;
}

Required Methods§

source

fn signature_bytes(&self) -> &[u8]

source

fn public_key_bytes(&self) -> &[u8]

source

fn scheme(&self) -> SignatureScheme

source

fn verify_secure<T>( &self, value: &IntentMessage<T>, author: IotaAddress, scheme: SignatureScheme, ) -> IotaResult<()>
where T: Serialize,

Object Safety§

This trait is not object safe.

Implementors§