pub fn load_bootstrap_pubkeys(
credentials_dir: &Path,
) -> Result<HashMap<String, VerifyingKey>>Expand description
Bootstrap pubkeys — the pubkeys of services needed before discovery is available.
Contains the pubkeys of PolicyService and DiscoveryService, which must be known to all services so they can verify RPC responses from these bootstrap services without querying discovery (chicken-and-egg).
Wire format (see docs/bootstrap-pubkeys-format.md): a flat JSON object
{ "<service>": "<base64>" }, base64 using the URL-safe-no-pad alphabet
(RFC 4648 §5, no +///=). Each value decodes either to 32 raw Ed25519
bytes (classical entry) or to 1984 bytes — 32 Ed25519 followed by 1952
ML-DSA-65 — for a hybrid entry, the same concatenation the deployment CA
root uses.
This projection returns only the Ed25519 anchor of each entry, so callers
that predate hybrid entries keep working unchanged. Callers that need the
bound post-quantum key use load_bootstrap_pubkeys_hybrid.