Function generate_pre_keys

Source
pub fn generate_pre_keys(
    ctx: &Context,
    start: u32,
    count: u32,
) -> Result<PreKeyList, Error>
Expand description

Generate a list of PreKeys. Clients should do this at install time, and subsequently any time the list of PreKeys stored on the server runs low.

Pre key IDs are shorts, so they will eventually be repeated. Clients should store pre keys in a circular buffer, so that they are repeated as infrequently as possible.