config
Module: authority::config
Section titled “Module: authority::config”Contents
Section titled “Contents”Structs
AuthorityConnectSection- Client-side connect coordinates lifted from[sidecar.authority].AuthoritySection- Snapshot of routing-relevant sections.
Functions
read_authority- Read the routing snapshot fromfirma.toml.
firma_run::authority::config::AuthorityConnectSection
Section titled “firma_run::authority::config::AuthorityConnectSection”Struct
Client-side connect coordinates lifted from [sidecar.authority].
Fields:
url: Option<String>- Authority gRPC URL (e.g.https://127.0.0.1:9443).ca_cert_path: Option<std::path::PathBuf>- Path to the PEM CA certificate that signed the authority’s TLS cert.public_key_path: Option<std::path::PathBuf>- Path to the authority’s Ed25519 public key for PASETO token verification.credentials: Option<firma_sidecar::authority_credentials::SidecarCredentialsConfig>- Sidecar credentials presented on Authority RPCs.
Traits: Eq
Trait Implementations:
- PartialEq
fn eq(self: &Self, other: &AuthorityConnectSection) -> bool
- Default
fn default() -> AuthorityConnectSection
- Debug
fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result
- Clone
fn clone(self: &Self) -> AuthorityConnectSection
firma_run::authority::config::AuthoritySection
Section titled “firma_run::authority::config::AuthoritySection”Struct
Snapshot of routing-relevant sections.
Fields:
local: bool-truewhen[authority]is present — the file declares alisten_addr: std::net::SocketAddr- Parsed[authority].listen_addr, defaulting to[::1]:50051.connect: Option<AuthorityConnectSection>- Client-side connect coordinates lifted from[sidecar.authority].
Traits: Eq
Trait Implementations:
- Clone
fn clone(self: &Self) -> AuthoritySection
- PartialEq
fn eq(self: &Self, other: &AuthoritySection) -> bool
- Default
fn default() -> Self
- Debug
fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result
firma_run::authority::config::read_authority
Section titled “firma_run::authority::config::read_authority”Function
Read the routing snapshot from firma.toml.
Returns Ok(None) when the file does not exist or carries neither
[authority] nor [sidecar.authority] connect coordinates.
Errors
Section titled “Errors”Returns an error on I/O failure (other than NotFound) or TOML
parse failure.
fn read_authority(path: &std::path::Path) -> Result<Option<AuthoritySection>, crate::error::RunError>