iota_types::crypto

Trait IotaAuthoritySignature

Source
pub trait IotaAuthoritySignature {
    // Required methods
    fn verify_secure<T>(
        &self,
        value: &IntentMessage<T>,
        epoch_id: EpochId,
        author: AuthorityPublicKeyBytes,
    ) -> Result<(), IotaError>
       where T: Serialize;
    fn new_secure<T>(
        value: &IntentMessage<T>,
        epoch_id: &EpochId,
        secret: &dyn Signer<Self>,
    ) -> Self
       where T: Serialize;
}

Required Methods§

Source

fn verify_secure<T>( &self, value: &IntentMessage<T>, epoch_id: EpochId, author: AuthorityPublicKeyBytes, ) -> Result<(), IotaError>
where T: Serialize,

Source

fn new_secure<T>( value: &IntentMessage<T>, epoch_id: &EpochId, secret: &dyn Signer<Self>, ) -> Self
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§