Skip to main content

migrate_sync_key

Function migrate_sync_key 

Source
pub fn migrate_sync_key(
    store: &SqliteStore,
    data_dir: &Path,
    name: &str,
    now_micros: i64,
) -> Result<Continuity>
Expand description

Turns a sync.key from sync protocol 3 or older into epoch 0 of this device’s identity key, wrapped to its device key, mints epoch 1 and writes this device’s self-signed row. The file is deleted only once the wrapped key is on disk and opens again. Safe to rerun after a crash at any step.