identity_iota_interaction::types::crypto

Trait IotaAuthoritySignature

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

Required Methods§

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

fn new_secure<T>( value: &IntentMessage<T>, epoch_id: &u64, 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.

Implementations on Foreign Types§

§

impl IotaAuthoritySignature for BLS12381Signature

§

fn new_secure<T>( value: &IntentMessage<T>, epoch: &u64, secret: &dyn Signer<BLS12381Signature>, ) -> BLS12381Signature
where T: Serialize,

§

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

Implementors§