Trait chain_crypto::KeyEvolvingAlgorithm
source · pub trait KeyEvolvingAlgorithm: AsymmetricKey {
// Required methods
fn get_period(key: &Self::Secret) -> u32;
fn update(key: &mut Self::Secret) -> EvolvingStatus;
}
Required Methods§
sourcefn get_period(key: &Self::Secret) -> u32
fn get_period(key: &Self::Secret) -> u32
Get the period associated with this signature
sourcefn update(key: &mut Self::Secret) -> EvolvingStatus
fn update(key: &mut Self::Secret) -> EvolvingStatus
Update the secret key to the next period
if EvolvingStatus::Failed is returned, then the key couldn’t be updated