Skip to main content

agentvault-mls

AgentVault's patched UniFFI Python bindings for mls-rs (RFC 9420 Messaging Layer Security).

What's in this fork

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:

  • Group.export_secret(label, context, len) — RFC 9420 §8.5
  • Message.to_bytes() — serialize to wire bytes
  • Message.from_bytes(bytes) — deserialize from wire bytes

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:

  • SigningIdentity.basic_identity() — the basic credential identity bytes, or None for a non-basic credential
  • 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.
  • 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.

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.

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.

Install

pip install agentvault-mls

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.

Wheels are published for:

  • Linux x86_64 (manylinux2014)
  • macOS universal2 (x86_64 + arm64)
  • Windows x86_64
  • Python 3.10, 3.11, 3.12, 3.13

Usage

from mls_rs_uniffi import Client, ClientConfig, generate_signature_keypair, CipherSuite

config = ClientConfig()
keypair = generate_signature_keypair(CipherSuite.CURVE25519_AES128)
client = Client(name=b"alice", signature_keypair=keypair, client_config=config)
key_package = client.generate_key_package_message()

See the upstream mls-rs-uniffi tests for more examples.

Why a fork

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 for full diff.

License

Apache-2.0 OR MIT (matching upstream).

Metadata

Release files for agentvault-mls 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agentvault-mls 0.1.2
File Size Uploaded Provenance Actions
agentvault_mls-0.1.2.tar.gz 450.7 kB With provenance Details for agentvault_mls-0.1.2.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for agentvault-mls 0.1.2
File Interpreter ABI Platform Actions
agentvault_mls-0.1.2-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for agentvault_mls-0.1.2-py3-none-win_amd64.whl
agentvault_mls-0.1.2-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details for agentvault_mls-0.1.2-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
agentvault_mls-0.1.2-py3-none-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl Python 3 none macOS 10.12+ x86-64, macOS 11.0+ ARM64, macOS 10.12+ universal2 (ARM64, x86-64) Details for agentvault_mls-0.1.2-py3-none-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl

Total release size: 11.0 MB

Release files / agentvault_mls-0.1.2.tar.gz

Download URL agentvault_mls-0.1.2.tar.gz
Size 450.7 kB
Tags Source
SHA-256 checksum
How to use checksums
f13b30d602511d924fd5ae45631139962995e885e554d318462324dbcbc69c75
BLAKE2b-256 checksum
How to use checksums
2eaf6ec3b6a9a9668960ba41f4155ef88e94f00069ca0bd27773dffdf00e03a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / agentvault_mls-0.1.2-py3-none-win_amd64.whl

Download URL agentvault_mls-0.1.2-py3-none-win_amd64.whl
Size 2.8 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
84000dcbe99e8d2de145389fab1f1d00231ea02963ae57ca1e39eb655292204c
BLAKE2b-256 checksum
How to use checksums
d1ecbe5e9c69d2cd004ab19769b860b908e3116a9d1873518c07092a13e87d69
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / agentvault_mls-0.1.2-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL agentvault_mls-0.1.2-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 2.7 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
7e851f163c0bfd209f2972ac3c7caa4109fc84fc5b74f6202d47893a098e2020
BLAKE2b-256 checksum
How to use checksums
e0e49bcd5154d9ad1639b089fec46aa083d99d0c9ee336e28545f9fb7f098c41
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / agentvault_mls-0.1.2-py3-none-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl

Download URL agentvault_mls-0.1.2-py3-none-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl
Size 5.1 MB
Tags Python 3 macOS 10.12+ universal2 (ARM64, x86-64) macOS 10.12+ x86-64 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
8e8cfb948ba18483a71bf28f4ec3fb109a3d1c6954e85f351fea23a752fce246
BLAKE2b-256 checksum
How to use checksums
a98bf22e9b0d9b215ad6ac0cc9643584e24ef028927d8ad4b32ff859bca6fb24
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Security for agentvault-mls 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 4 files in this release have been uploaded with provenance metadata.

Select from 4 files

Attestation for agentvault_mls-0.1.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.2 This release

4 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page