Module agents

Module agents 

Source
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.