Skip to main content

Module wan_key_revocation

Module wan_key_revocation 

Source
Expand description

A signed notice that one agent’s WAN key was retired.

An install replaces an agent’s key when the old one should no longer be trusted. The install signs a WanKeyRevocation naming the key (instance, agent, channel, fingerprint) with its instance key, the same key that certified the agent key in the first place, so only that install can retire it and an agent never can. The directory serves the notice, and a receiver that holds it refuses any message signed by that fingerprint.

The byte format must match the cloud’s (wan-keys.ts there); the fixed vector in the tests below is the contract between the two.

Structs§

WanKeyRevocation
One agent key retired by the instance that minted it. Every field is untrusted until WanKeyRevocation::verify passes.