Metadata-Version: 2.1
Name: avrotia
Version: 0.1.0
Summary: An DAG-based encrypted message channel protocol
Author: Li lingyi
Author-email: 7261230@xserver.de5.net
Keywords: encryption,e2ee
Requires: pycryptodome
Requires: x25519
Requires: mlkem
Requires: pydantic
Requires: dag_cbor
Description-Content-Type: text/markdown
Requires-Dist: pycryptodome
Requires-Dist: x25519
Requires-Dist: mlkem
Requires-Dist: pydantic
Requires-Dist: dag-cbor

# Avrotia: DAG-based encrypted message channel protocol

## Example

```python
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.
