Skip to main content

AuthenticatorTrait

Trait AuthenticatorTrait 

Source
pub trait AuthenticatorTrait {
    // Required method
    fn verify_claims<T>(
        &self,
        value: &IntentMessage<T>,
        author: Address,
        aux_verify_data: &VerifyParams,
    ) -> IotaResult
       where T: Serialize;
}
Expand description

A lightweight trait that all members of [UserSignature] implement.

Required Methods§

Source

fn verify_claims<T>( &self, value: &IntentMessage<T>, author: Address, aux_verify_data: &VerifyParams, ) -> IotaResult
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§

Source§

impl AuthenticatorTrait for PasskeyAuthenticator

Source§

fn verify_claims<T>( &self, intent_msg: &IntentMessage<T>, author: Address, _aux_verify_data: &VerifyParams, ) -> IotaResult
where T: Serialize,

Verify an intent message of a transaction with an passkey authenticator.

Source§

impl AuthenticatorTrait for UserSignature

Source§

fn verify_claims<T>( &self, value: &IntentMessage<T>, author: Address, aux_verify_data: &VerifyParams, ) -> IotaResult
where T: Serialize,

Implementors§