Trait iota_types::crypto::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,

Object Safety§

This trait is not object safe.

Implementors§