Skip to main content

Module keypair

Module keypair 

Source
Expand description

Local Ed25519 keypair persistence and initialization.

A missing database entry is generated and stored. An invalid stored entry is deleted and reported as an error so a later service start can regenerate it.

Re-exportsยง

use std::sync::Arc; ๐Ÿ”’
use ruma::api::federation::discovery::VerifyKey; ๐Ÿ”’
use ruma::serde::Base64; ๐Ÿ”’
use ruma::signatures::Ed25519KeyPair; ๐Ÿ”’
use tuwunel_core::Result; ๐Ÿ”’
use tuwunel_core::debug; ๐Ÿ”’
use tuwunel_core::debug; ๐Ÿ”’
use tuwunel_core::debug_info; ๐Ÿ”’
use tuwunel_core::err; ๐Ÿ”’
use tuwunel_core::error; ๐Ÿ”’
use tuwunel_core::error; ๐Ÿ”’
use tuwunel_core::utils; ๐Ÿ”’
use tuwunel_core::utils::string_from_bytes; ๐Ÿ”’
use tuwunel_database::Database; ๐Ÿ”’
use super::VerifyKeys; ๐Ÿ”’

Functionsยง

create ๐Ÿ”’
init ๐Ÿ”’
Initializes the local keypair and its active verify-key map.
load ๐Ÿ”’
remove ๐Ÿ”’