Expand description
Admin-anchored mesh post-quantum trust store construction (#157, Option A).
Builds the process-global kid-anchored KeyedPqTrustStore eagerly from the
operator-configured mesh_peers (see crate::config::MeshPeerConfig). The
store is admin-anchored and immutable after construction: only ML-DSA-65 keys
an operator configured out-of-band are trusted, matching the
KeyedPqTrustStore contract (“Entries MUST be established out-of-band”).
Each peer entry carries two inline Multikey (publicKeyMultibase) strings,
copied from that peer’s published DID document:
#mesh→ Ed25519 mesh signer key (multicodeced25519-pub,0xed01)#mesh-pq→ ML-DSA-65 mesh verifying key (multicodecml-dsa-65-pub,0x1211)
The Ed25519 key is the kid anchor; the ML-DSA-65 key is the trusted PQ key
bound to it. Empty/absent mesh_peers yields an empty store — unchanged
behavior (Hybrid fails closed for unknown peers).
Functions§
- build_
mesh_ identity_ roster - Build the per-host mesh identity roster from the admin-configured
mesh_peers(#328): each peer’s Ed25519 signer pubkey → its per-host authorization subject (service:inference:host-<label>). - build_
mesh_ pq_ trust_ store - Build the kid-anchored ML-DSA-65 trust store from the admin-configured
mesh_peers(#157, Option A — eager, admin-anchored, immutable). - encode_
multikey - Encode raw key bytes as a
MultikeypublicKeyMultibasestring (base58btc, multicodec-prefixed). Inverse ofdecode_multikey; used by tests and by operators generating peer entries. - seed_
bootstrap_ pq_ bindings - Anchor the ML-DSA-65 keys carried by the node’s own
bootstrap-pubkeysentries intostore, keyed by the Ed25519 signer identity each entry already anchors in the classical trust store.