Expand description
Ed25519 keys: a bot’s own key (state/peer.key) and the public keys of members and teams.
Structs§
- Public
Key - A public key, written
ed25519:<base64url>. - Signing
Key - A private signing key (a bot’s, or a team owner’s).
Constants§
- KEY_
FILE - The private key file in a bot’s
state/. - PUBLIC_
FILE - The public key file next to it, read by other bots of the machine.
Functions§
- bot_
public_ key - Reads the public key a bot directory publishes (
<dir>/state/peer.pub). - write_
new_ private - Writes
bytesto a new file only its owner can read.