mirror of
https://codeberg.org/lilingyi0619/avrotia.git
synced 2026-11-29 08:27:24 +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"alice@example.com", b"bob@example.com", shared_key)
bob = ChatEnclaveDriver(b"bob@example.com", b"alice@example.com", shared_key)
cipher = alice.deliver_message({"message": "Hello, Bob! I'm Alice."})
print(bob.receive_message(cipher))
API Doc
See the in-code doctexts.