Skip to main content

AgentVault's patched UniFFI Python bindings for mls-rs (RFC 9420 MLS)

Project description

agentvault-mls-rs-uniffi

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 three additive 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

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-rs-uniffi

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).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agentvault_mls_rs_uniffi-0.1.1.tar.gz (440.3 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

agentvault_mls_rs_uniffi-0.1.1-py3-none-win_amd64.whl (2.8 MB view details)

Uploaded Python 3Windows x86-64

agentvault_mls_rs_uniffi-0.1.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.7 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

agentvault_mls_rs_uniffi-0.1.1-py3-none-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (5.0 MB view details)

Uploaded Python 3macOS 10.12+ universal2 (ARM64, x86-64)macOS 10.12+ x86-64macOS 11.0+ ARM64

File details

Details for the file agentvault_mls_rs_uniffi-0.1.1.tar.gz.

File metadata

  • Download URL: agentvault_mls_rs_uniffi-0.1.1.tar.gz
  • Upload date:
  • Size: 440.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for agentvault_mls_rs_uniffi-0.1.1.tar.gz
Algorithm Hash digest
SHA256 073980e5594ff5222a9204f8025d6df9bf5cb5583ecd34289a5c28db7ad479cf
MD5 ed1089896a254f0d423de8cf7835e570
BLAKE2b-256 77806a7ab0bfb3a7f2bc542ca82c26b8e58ab44a61c875239130d0535e3b13cb

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentvault_mls_rs_uniffi-0.1.1.tar.gz:

Publisher: release.yml on motiveflowllc/mls-rs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file agentvault_mls_rs_uniffi-0.1.1-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for agentvault_mls_rs_uniffi-0.1.1-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 ced25ed15706800a77a4e044e8772356ac50a9d55d2ad1e0a677d6cfc40446fc
MD5 ead991e7a1d447799443108ddbd72991
BLAKE2b-256 b32e7bcc0996591c89d07c5b6ea5b38c84f694e4cb3f305e2a210f267d27ec8c

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentvault_mls_rs_uniffi-0.1.1-py3-none-win_amd64.whl:

Publisher: release.yml on motiveflowllc/mls-rs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file agentvault_mls_rs_uniffi-0.1.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for agentvault_mls_rs_uniffi-0.1.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 343a38afdf77e7630b0b11b2acd8ec03aa0efc9063966fc83d49cd3adc75b9f6
MD5 c707c0261b026e0c891b096253a15ea0
BLAKE2b-256 5f7cd3c2aa9faf64caab483d8088f81e34ebd757277af29bf01e685c6cc927c0

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentvault_mls_rs_uniffi-0.1.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release.yml on motiveflowllc/mls-rs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file agentvault_mls_rs_uniffi-0.1.1-py3-none-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl.

File metadata

File hashes

Hashes for agentvault_mls_rs_uniffi-0.1.1-py3-none-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 4d73628e78cd8d79c162a889de75e767151c39e2bea62c3e962175cc9f5c0d53
MD5 e141dab0d80e0aff584fa60bc1faffbe
BLAKE2b-256 ee26937936595af2ad84eb1507004f8fe828390a967dd5ef6abf86822a1cc8ef

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentvault_mls_rs_uniffi-0.1.1-py3-none-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl:

Publisher: release.yml on motiveflowllc/mls-rs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page