mirror of
https://codeberg.org/lilingyi0619/avrotia.git
synced 2026-10-13 07:41:29 +08:00
Avrotia: A DAG-based encrypted message channel protocol.
- Python 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| avrotia | ||
| .gitignore | ||
| README.md | ||
| requirements.txt | ||
| setup.py | ||
Avrotia: DAG-based encrypted message channel protocol
Example
from avrotia import ChatEnclaveDriver
import os
shared_key = os.urandom(32)
alice = ChatEnclaveDriver(b"[email protected]", b"[email protected]", shared_key)
bob = ChatEnclaveDriver(b"[email protected]", b"[email protected]", shared_key)
cipher = alice.deliver_message({"message": "Hello, Bob! I'm Alice."})
print(bob.receive_message(cipher))
API Doc
See the in-code doctexts.