Skip to main content

seed_bootstrap_pq_bindings

Function seed_bootstrap_pq_bindings 

Source
pub fn seed_bootstrap_pq_bindings(
    store: &mut KeyedPqTrustStore,
    credentials_dir: &Path,
) -> usize
Expand description

Anchor the ML-DSA-65 keys carried by the node’s own bootstrap-pubkeys entries into store, keyed by the Ed25519 signer identity each entry already anchors in the classical trust store.

The bootstrap file is OS-owned, written out-of-band by the provisioning wizard, so it satisfies the KeyedPqTrustStore contract exactly as mesh_peers does. Classical-only entries contribute nothing and clear nothing: anchoring is monotonic, so a legacy file left in place after a hybrid enrollment cannot downgrade an already-anchored service.

A missing or unreadable file yields zero bindings — the pre-hybrid behavior, unchanged.

Returns the number of identities anchored from the file.