Structs§
- KeyService
- User
Keypair - Ed25519 keypair for signing changesets and membership changes. The same seed can derive an X25519 keypair for key wrapping.
Enums§
- Cloud
Home Credentials - Credentials for the cloud home, stored as a single JSON keyring entry.
- KeyError
Constants§
- CURV
E25519_ PUBLICKEYBYTES - CURV
E25519_ SECRETKEYBYTES - SEALBYTES
- SIGN_
BYTES - SIGN_
PUBLICKEYBYTES - SIGN_
SECRETKEYBYTES
Functions§
- ed25519_
to_ x25519_ public_ key - Convert an Ed25519 public key to an X25519 public key.
- keyring_
service - The configured keyring service name (see
set_keyring_service). Public so host apps store their own credentials under the same service. - read_
env - Read an env var, distinguishing “not set” (
Ok(None)) from non-utf8 content (Err). An empty value is treated as not set. Mirrorsread_keyring’s semantics for dev-mode reads. - read_
keyring - Read a keyring password by account name, distinguishing “not set”
(
Ok(None)) from a backend failure (Err). An empty stored value is treated as not set. Public so host apps read their own namespaced credentials with the same not-set/failure semantics. - seal_
box_ decrypt - Decrypt a sealed box using the recipient’s X25519 keypair.
- seal_
box_ encrypt - Encrypt a message to a recipient’s X25519 public key using a sealed box. The sender is anonymous – only the recipient can decrypt.
- set_
keyring_ service - Set the keyring service name. Call once at startup, before any keyring access.
- verify_
signature - Verify a detached Ed25519 signature against a public key.