sui_types::crypto

Trait SuiSignature

Source
pub trait SuiSignature: 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: SuiAddress,
        scheme: SignatureScheme,
    ) -> SuiResult<()>
       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: SuiAddress, scheme: SignatureScheme, ) -> SuiResult<()>
where T: Serialize,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§