pub fn generate_pre_keys(
ctx: &Context,
start: u32,
count: u32,
) -> Result<PreKeyList, Error>
Expand description
Generate a list of PreKey
s. Clients should do this at install time, and
subsequently any time the list of PreKey
s 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.