https://github.com/candango/gopeasant
Golang implementation of peasant protocol
https://github.com/candango/gopeasant
Last synced: 2 months ago
JSON representation
Golang implementation of peasant protocol
- Host: GitHub
- URL: https://github.com/candango/gopeasant
- Owner: candango
- License: mit
- Created: 2023-05-31T15:29:58.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2025-12-26T06:56:36.000Z (6 months ago)
- Last Synced: 2025-12-27T19:42:24.153Z (6 months ago)
- Language: Go
- Size: 57.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Candango Go Peasant
Peasant Protocol: A Contract for Controlling Agents
The Peasant protocol is a high-level abstraction designed to facilitate
communication between agents (peasants) and central entities (bastions). It
does not impose specific implementation details, security requirements, or
redundancy levels, but instead establishes a minimal contract for what must be
implemented.
In this protocol, agents are referred to as peasants, while central entities
are called bastions. The relationship between a bastion and peasant can be
either stateful or stateless. In a stateful scenario, bastions must implement
a session control mechanism, requiring peasants to perform "knocks" (similar
to knocking on a door) to request permission or establish a valid session. In a
stateless scenario, the concept of knocking is ignored.
The Peasant protocol mandates the implementation of nonce generation,
consumption and validation on both the peasant and bastion sides.
Additionally, bastions must provide a directory list of available resources
that peasants can consume.
## Support
GoPeasat is one of
[Candango Open Source Group](http://www.candango.org/projects/) initiatives.
Available under the [MIT License](https://mit-license.org).
Documentation is licensed under
[Creative Commons 3.0](http://creativecommons.org/licenses/by/3.0/).
Copyright © 2023-2026 Flavio Garcia