Expand description
Relay configuration for FROST shares.
Structs§
- Peer
Policy Entry - Per-peer send/receive policy entry, stored alongside relay configuration.
- Relay
Config - Relay configuration for a FROST share, keyed by group public key.
- Stored
Bunker Permission - Persisted permission state for a connected bunker (NIP-46) client.
- Stored
Timed Kind Grant - A single timed per-kind auto-approve grant persisted for a bunker client.
Survives restart; pruned on restore once
expires_athas passed.
Enums§
- Stored
Permission Duration - Duration for stored bunker client permissions.
Constants§
- ALLOW_
INTERNAL_ HOSTS - Whether the
allow-internalCargo feature is active. - GLOBAL_
RELAY_ KEY - Sentinel key for global (non-group-specific) relay configuration.
- MAX_
AUTO_ KINDS - Maximum number of auto-approve kinds per app or globally.
- MAX_
BUNKER_ APPS - Maximum number of persisted bunker app permissions per config.
- MAX_
BUNKER_ NAME_ LEN - Maximum length of a stored bunker app name.
- MAX_
RELAYS - Maximum number of relays per category per share.
- MAX_
RELAY_ CONFIG_ SIZE - Maximum size of a decrypted relay-config blob.
- MAX_
RELAY_ URL_ LENGTH - Maximum length of a relay URL.
- TIMESTAMP_
TWEAK_ RANGE - Range of seconds to randomly tweak event timestamps for privacy.
- VALID_
PERMISSION_ MASK - Valid bunker permission bitflags mask (matches
keep_nip46::Permission).
Functions§
- decode_
relay_ config - Decrypt and deserialize a relay config blob produced by
encode_relay_config. - default_
frost_ relays - Default FROST coordination relays.
- encode_
relay_ config - Serialize and encrypt a relay config for at-rest storage.
- is_
internal_ ip - Check if a resolved IP address is internal/private/reserved.
- normalize_
relay_ url - Normalize a relay URL: trim whitespace, lowercase scheme+host, ensure trailing slash.
- validate_
relay_ url - Validate a relay URL is a valid wss:// URL pointing to a public host.
- validate_
relay_ url_ allow_ internal - Like
validate_relay_urlbut permits internal/private addresses.