Expand description
Ed25519 identity. The public key is the identity; names are local petnames.
Claiming the name “alice” gets you nothing without her key, so the sender gate in the channel server checks a signature rather than a string an agent typed. This is the property the channel docs demand: “gate on the sender’s identity.”
Signing covers a domain-separated, length-prefixed canonical encoding, so a signature can never be replayed into a different context and no pair of fields can be shifted across their boundary.
Structs§
- AgentId
- An agent’s identity: its Ed25519 public key.
- Agent
Key - An agent’s secret key. Zeroized on drop by
ed25519-dalek’s default features. - Announcement
- A signed presence announcement, published to the bus roster. The
nameis a self-claim; identity is the key, so a peerverifys before ever trusting the name. - Signed
Message - What travels over the bus. The bus treats it as an opaque payload.
Enums§
- Message
Kind - What a signed message is. A plain
Messageis the everyday case; the pairing kinds are the only thing a non-peer may deliver (a knock), gated specially.
Functions§
- check_
freshness - Reject messages whose timestamp is too far from now, bounding replay windows.