Skip to main content

Module server_keys

Module server_keys 

Source
Expand description

Federation signing-key storage, acquisition, signing, and verification.

The service loads the local Ed25519 identity, caches remote current and old verify keys, fetches missing keys from origins or configured notaries, and supplies the cryptographic operations used by federation event handling.

Modulesยง

acquire ๐Ÿ”’
Best-effort acquisition of missing federation verify keys.
get ๐Ÿ”’
Retrieval of cached and remote federation verify keys.
keypair ๐Ÿ”’
Local Ed25519 keypair persistence and initialization.
request ๐Ÿ”’
Federation requests for origin and notary signing-key documents.
sign ๐Ÿ”’
Local signing and event-ID generation helpers.
verify ๐Ÿ”’
Event-ID derivation and federation signature verification.

Structsยง

Data ๐Ÿ”’
Service
Manages the local signing identity and cached remote verification keys.

Functionsยง

extract_key ๐Ÿ”’
key_exists ๐Ÿ”’
merge_old_keys ๐Ÿ”’

Type Aliasesยง

PubKeyMap
Public keys grouped first by server name and then by key ID.
PubKeys
Public keys for one server, indexed by textual key ID.
VerifyKeys
Verify keys indexed by Matrix server signing-key ID.