pub trait IdentityAction: Send {
// Required methods
fn update_state(
&self,
existing_state: Option<AssociationState>,
client_timestamp_ns: u64,
) -> Result<AssociationState, AssociationError>;
fn replay_keys(&self) -> Vec<Vec<u8>>;
// Provided method
fn replay_check(
&self,
state: &AssociationState,
) -> Result<(), AssociationError> { ... }
}Required Methods§
fn update_state( &self, existing_state: Option<AssociationState>, client_timestamp_ns: u64, ) -> Result<AssociationState, AssociationError>
Sourcefn replay_keys(&self) -> Vec<Vec<u8>>
fn replay_keys(&self) -> Vec<Vec<u8>>
The canonical replay key of every signature the action carries (see VerifiedSignature).