Skip to main content

init

Function init 

Source
pub(super) fn init(
    db: &Arc<Database>,
) -> Result<(Box<Ed25519KeyPair>, VerifyKeys)>
Expand description

Initializes the local keypair and its active verify-key map.

A missing keypair is generated immediately. If a stored keypair cannot be decoded, its row is removed but the current call still returns that error.