Skip to main content

load_or_create

Function load_or_create 

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

Loads the seed at path, or creates it with a fresh random value if absent (mode 0600 on Unix). Used by both the daemon (first start) and the ijima token issue CLI. Delegates to schubert::crypto::KeyStore::load_or_create.

ยงErrors

Returns IjimaError::Store on I/O failure or IjimaError::InvalidInput if an existing file is not 32 bytes.