Skip to main content

initialize_profile

Function initialize_profile 

Source
pub fn initialize_profile(
    path: impl AsRef<Path>,
    password: &[u8],
) -> Result<(ProfileLocation, KeyFile, InitializedLayout)>
Expand description

Creates a NEW account root atomically. The caller supplies an existing/new 32-byte binary database password explicitly and stores returned keys separately. For an official home this is the accepted account AuthSect field 9 payload; generating another password cannot substitute for that server-issued value. This initializes ordinary native schemas; it does not claim a fully trusted login profile or manufacture custom-tokenizer indexes.