agentvault-mls 0.1.2__py3-none-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- agentvault_mls-0.1.2.dist-info/METADATA +88 -0
- agentvault_mls-0.1.2.dist-info/RECORD +7 -0
- agentvault_mls-0.1.2.dist-info/WHEEL +4 -0
- agentvault_mls-0.1.2.dist-info/sboms/mls-rs-uniffi.cyclonedx.json +4969 -0
- mls_rs_uniffi/__init__.py +1 -0
- mls_rs_uniffi/mls_rs_uniffi.dll +0 -0
- mls_rs_uniffi/mls_rs_uniffi.py +3842 -0
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: agentvault-mls
|
|
3
|
+
Version: 0.1.2
|
|
4
|
+
Classifier: Development Status :: 4 - Beta
|
|
5
|
+
Classifier: Intended Audience :: Developers
|
|
6
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
7
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
8
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
9
|
+
Classifier: Operating System :: MacOS :: MacOS X
|
|
10
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
11
|
+
Classifier: Programming Language :: Python :: 3
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
16
|
+
Classifier: Programming Language :: Rust
|
|
17
|
+
Classifier: Topic :: Security :: Cryptography
|
|
18
|
+
Summary: AgentVault's patched UniFFI Python bindings for mls-rs (RFC 9420 MLS)
|
|
19
|
+
Keywords: mls,rfc9420,e2ee,cryptography,uniffi
|
|
20
|
+
Home-Page: https://github.com/awslabs/mls-rs
|
|
21
|
+
Author: MotiveFlow LLC
|
|
22
|
+
License: Apache-2.0 OR MIT
|
|
23
|
+
Requires-Python: >=3.10
|
|
24
|
+
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
|
|
25
|
+
Project-URL: Homepage, https://github.com/motiveflow-dev/mls-rs
|
|
26
|
+
Project-URL: Issues, https://github.com/motiveflow-dev/mls-rs/issues
|
|
27
|
+
Project-URL: Repository, https://github.com/motiveflow-dev/mls-rs
|
|
28
|
+
|
|
29
|
+
# agentvault-mls
|
|
30
|
+
|
|
31
|
+
AgentVault's patched UniFFI Python bindings for [mls-rs] (RFC 9420 Messaging Layer Security).
|
|
32
|
+
|
|
33
|
+
[mls-rs]: https://github.com/awslabs/mls-rs
|
|
34
|
+
|
|
35
|
+
## What's in this fork
|
|
36
|
+
|
|
37
|
+
This is a fork of upstream `awslabs/mls-rs` published as a Python wheel. It adds UniFFI exports needed for wire-format interop with [`ts-mls`](https://github.com/LukasMasuch/ts-mls):
|
|
38
|
+
|
|
39
|
+
- `Group.export_secret(label, context, len)` — RFC 9420 §8.5
|
|
40
|
+
- `Message.to_bytes()` — serialize to wire bytes
|
|
41
|
+
- `Message.from_bytes(bytes)` — deserialize from wire bytes
|
|
42
|
+
|
|
43
|
+
Since 0.1.2 (AgentVault #1800) it also tells the application who sent each application message, read from the tree of the epoch that verified it:
|
|
44
|
+
|
|
45
|
+
- `SigningIdentity.basic_identity()` — the basic credential identity bytes, or `None` for a non-basic credential
|
|
46
|
+
- `ReceivedMessage.APPLICATION_MESSAGE.sender_leaf` — a `SenderLeaf(leaf_index, signing_identity, identity_leaf_count)`, or `None` when the leaf now at the sender's index no longer carries the key that verified a prior-epoch message (it was handed to another member). If that leaf has since been **blanked** (the sender was removed and nobody took the slot), `process_incoming_message` **raises** `InvalidNodeIndex` from the legacy `sender` lookup instead, after decryption has already consumed the message key; callers must catch it and treat the frame as undeliverable. Use `sender_leaf`, not `sender`, to decide who sent a message: `sender` is looked up in the *current* tree, so a message from a prior epoch can be attributed to whoever holds that leaf index now.
|
|
47
|
+
- `mls_rs::Group::prior_epoch_signature_key(epoch, index)` (Rust only) — the signature key a leaf held in a retained prior epoch, which `sender_leaf` compares against the current leaf.
|
|
48
|
+
|
|
49
|
+
`mls-rs-uniffi/src/identity_rules_tests.rs` pins, against hostile commits on real groups, that a client built this way refuses an identity-changing Update or UpdatePath, a commit adding an identity already in the tree (a remove + re-add of one identity in one commit still passes), and a Welcome into a tree holding one identity on two leaves.
|
|
50
|
+
|
|
51
|
+
The patches are additive (no breaking changes) and are intended to be upstreamed to `awslabs/mls-rs`. Once upstreamed and a release is cut, this package will be deprecated in favor of the upstream wheel.
|
|
52
|
+
|
|
53
|
+
## Install
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
pip install agentvault-mls
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
The import name is `mls_rs_uniffi`. Releases up to 0.1.1 were published as `agentvault-mls-rs-uniffi`; from 0.1.2 the distribution is `agentvault-mls`. Uninstall the old one first (`pip uninstall agentvault-mls-rs-uniffi`), because both install the same `mls_rs_uniffi` package.
|
|
60
|
+
|
|
61
|
+
Wheels are published for:
|
|
62
|
+
|
|
63
|
+
- Linux x86_64 (manylinux2014)
|
|
64
|
+
- macOS universal2 (x86_64 + arm64)
|
|
65
|
+
- Windows x86_64
|
|
66
|
+
- Python 3.10, 3.11, 3.12, 3.13
|
|
67
|
+
|
|
68
|
+
## Usage
|
|
69
|
+
|
|
70
|
+
```python
|
|
71
|
+
from mls_rs_uniffi import Client, ClientConfig, generate_signature_keypair, CipherSuite
|
|
72
|
+
|
|
73
|
+
config = ClientConfig()
|
|
74
|
+
keypair = generate_signature_keypair(CipherSuite.CURVE25519_AES128)
|
|
75
|
+
client = Client(name=b"alice", signature_keypair=keypair, client_config=config)
|
|
76
|
+
key_package = client.generate_key_package_message()
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
See the upstream [mls-rs-uniffi tests](https://github.com/motiveflow-dev/mls-rs/tree/main/mls-rs-uniffi/tests) for more examples.
|
|
80
|
+
|
|
81
|
+
## Why a fork
|
|
82
|
+
|
|
83
|
+
Phase 0 of AgentVault's Hermes plugin validated wire-format interop between Python (mls-rs-uniffi) and Node (ts-mls), but `ts-mls` requires access to the message wire bytes and the group's exported secret — neither of which is exposed by upstream `mls-rs-uniffi` as of `v0.13.0`. The fork adds these as additive UniFFI methods. See [the patch](https://github.com/motiveflow-dev/mls-rs/blob/agentvault/uniffi-export-secret-and-message-bytes/mls-rs-uniffi/src/lib.rs) for full diff.
|
|
84
|
+
|
|
85
|
+
## License
|
|
86
|
+
|
|
87
|
+
Apache-2.0 OR MIT (matching upstream).
|
|
88
|
+
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
agentvault_mls-0.1.2.dist-info/METADATA,sha256=XvCmVuDqH9pzr_RbmBgHVc73iFWay9vJkS8XaVjUQz0,5129
|
|
2
|
+
agentvault_mls-0.1.2.dist-info/WHEEL,sha256=Uvw7WSmy7Kj2FBk8Va4L_dq4MDW8X5Ynby-pOX3ZNS0,94
|
|
3
|
+
agentvault_mls-0.1.2.dist-info/sboms/mls-rs-uniffi.cyclonedx.json,sha256=yB-ynqnBXLQEcSzLite5TJ1rLVYIQgmWmG7z2Wp5bH8,157541
|
|
4
|
+
mls_rs_uniffi/__init__.py,sha256=wu0zkIhDLYyadwNjdreTtaowNsOGsTX9qIleZcQFFmc,37
|
|
5
|
+
mls_rs_uniffi/mls_rs_uniffi.dll,sha256=mSgmS5BlbND1WHwj6cs4LSeXVfzH37iSqoDTz2xCChk,6859776
|
|
6
|
+
mls_rs_uniffi/mls_rs_uniffi.py,sha256=eyoYwLfXCG_syZ1xdi_vYVbuL1JYCEwNQ9CwwbodrlE,140537
|
|
7
|
+
agentvault_mls-0.1.2.dist-info/RECORD,,
|