Skip to main content

foreign_protocol_keys

Function foreign_protocol_keys 

Source
pub fn foreign_protocol_keys(
    oauth: Option<&OAuthConfig>,
    secrets_dir: Option<&Path>,
) -> HashSet<Vec<u8>>
Expand description

Every public key this node already holds for another protocol, as raw public-key bytes.

These are exactly the keys a request-proof enrollment must not silently reuse. The set is deliberately a superset rather than one source: the mesh peer roster (remote identities) and this node’s own bootstrap identity keys (local identities), because reuse is equally a violation in either direction. Anything unreadable is skipped — a key we cannot decode is not a key we can prove is foreign, and the cross-protocol check is a refusal, so a miss here can only make the manifest more permissive, never less correct about the keys it does know.