Expand description
Logic for Agents Agents are actors (such as users) that can edit content. https://docs.atomicdata.dev/commits/concepts.html
Structs§
- Agent
- An Agent can be thought of as a User. Agents are used for authentication and authorization. The private key of the Agent is used to sign crate::Commits.
- Pair
- keypair, serialized using base64
Enums§
- ForAgent
- None represents no right checks will be performed, effectively SUDO mode.
Functions§
- decode_
base64 - encode_
base64 - generate_
public_ key - Returns a Key Pair (including public key) from a private key, base64 encoded.
- verify_
public_ key - Checks if the public key is a valid ED25519 base64 key. Not perfect - only checks byte length and parses base64.