pub struct RelayConfig {
pub group_pubkey: [u8; 32],
pub frost_relays: Vec<String>,
pub profile_relays: Vec<String>,
pub bunker_relays: Vec<String>,
pub peer_policies: Vec<PeerPolicyEntry>,
pub bunker_permissions: Vec<StoredBunkerPermission>,
pub auto_approve_kinds: Vec<u16>,
}Expand description
Relay configuration for a FROST share, keyed by group public key.
Fields§
§group_pubkey: [u8; 32]The FROST group public key this config belongs to.
frost_relays: Vec<String>FROST coordination relay URLs.
profile_relays: Vec<String>Profile / NIP-46 relay URLs.
bunker_relays: Vec<String>NIP-46 bunker relay URLs.
peer_policies: Vec<PeerPolicyEntry>Per-peer send/receive policies.
bunker_permissions: Vec<StoredBunkerPermission>Persisted bunker client permission grants.
auto_approve_kinds: Vec<u16>Global event kinds auto-approved for every NIP-46 signing request,
independent of any per-app auto_approve_kinds. Set via
keep nip46 auto-approve.
Implementations§
Source§impl RelayConfig
impl RelayConfig
Sourcepub fn new_global() -> Self
pub fn new_global() -> Self
Create a global relay config using the sentinel key with default FROST relays.
Sourcepub fn with_defaults(group_pubkey: [u8; 32]) -> Self
pub fn with_defaults(group_pubkey: [u8; 32]) -> Self
Create a relay config with default FROST relays.
Sourcepub fn normalize(self) -> KeepResult<Self>
pub fn normalize(self) -> KeepResult<Self>
Validate and normalize a relay config before persistence.
Relay URLs are normalized, deduplicated and validated; bunker permissions and auto-approve kinds are capped and masked. Used by every storage backend so all persisted configs share the same integrity rules.