Trait AuthenticatorTrait
pub trait AuthenticatorTrait {
// Required methods
fn verify_user_authenticator_epoch(
&self,
epoch: u64,
max_epoch_upper_bound_delta: Option<u64>,
) -> Result<(), IotaError>;
fn verify_claims<T>(
&self,
value: &IntentMessage<T>,
author: IotaAddress,
aux_verify_data: &VerifyParams,
zklogin_inputs_cache: Arc<VerifiedDigestCache<ZKLoginInputsDigest>>,
) -> Result<(), IotaError>
where T: Serialize;
}
Expand description
A lightweight trait that all members of [enum GenericSignature] implement.
Required Methods§
fn verify_user_authenticator_epoch( &self, epoch: u64, max_epoch_upper_bound_delta: Option<u64>, ) -> Result<(), IotaError>
fn verify_claims<T>(
&self,
value: &IntentMessage<T>,
author: IotaAddress,
aux_verify_data: &VerifyParams,
zklogin_inputs_cache: Arc<VerifiedDigestCache<ZKLoginInputsDigest>>,
) -> Result<(), IotaError>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§
impl AuthenticatorTrait for Signature
This ports the wrapper trait to the verify_secure defined on [enum Signature].