Skip to main content

Module key

Module key 

Source
Expand description

Ed25519 keys: a bot’s own key (state/peer.key) and the public keys of members and teams.

Structs§

PublicKey
A public key, written ed25519:<base64url>.
SigningKey
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 bytes to a new file only its owner can read.