signed_pre_key_needs_rotation

Function signed_pre_key_needs_rotation 

Source
pub async fn signed_pre_key_needs_rotation<S: SignalStorageContainer>(
    storage: &mut S,
) -> Result<bool, Box<dyn Error>>
Expand description

Checks if the current signed pre-key needs rotation

§Arguments

  • storage - Signal Protocol storage container

§Returns

true if key is older than rotation interval, false otherwise