Skip to main content

load_or_create_key

Function load_or_create_key 

Source
pub fn load_or_create_key(path: &Path) -> Result<[u8; 32]>
Expand description

Load the 32-byte sync key from path, generating and persisting a fresh one if absent. The file is written 0600 because the key grants full read of every synced memory (safety: file perms must be 0600).