Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

ratify-protocol-native

You almost certainly do not need this package.

Install ratify-protocol instead. That is the Python SDK: it verifies proofs, issues delegations, signs challenges, and stores identities, in pure Python, on every platform.

This package is a small optional add-on to that SDK. It exists to provide one function, and nothing else.


What this package does

It provides deterministic key generation: turning two 32-byte seeds into the same Ratify identity every time, and the same identity that the Go, Rust, TypeScript, and C SDKs derive from those seeds.

That is the whole scope. It contains no verification logic, no signing logic, and no protocol implementation. Installing it does not change how anything else in the Python SDK behaves.

Do you need it?

No, if you are verifying proofs, issuing delegations, signing challenges, or saving an identity to reuse later. All of that works in ratify-protocol with nothing extra. To persist an identity, store its key bytes and load them back.

Yes, if you need the same seeds to produce the same identity in Python as in another language. For example: a Go service generates an identity from seeds it holds, and a Python process must reconstruct that identity from the same seeds.

If you are not sure, you do not need it.

Install

pip install 'ratify-protocol[native]'

Install it through the extra rather than by name. The extra pins the two packages to matching versions, which is what keeps them compatible.

Once installed, nothing changes in how you write code. The function that previously raised now works:

from ratify_protocol import hybrid_keypair_from_seeds, derive_id

ed_seed = bytes(range(32))
ml_seed = bytes((0xA0 + i) & 0xFF for i in range(32))
public, private = hybrid_keypair_from_seeds(ed_seed, ml_seed)

# The same identity every SDK derives from these seeds.
assert derive_id(public) == "3823136b5a5fc4c755b22704474172c0"

Without this package, that call raises NotImplementedError with instructions. It never returns a wrong answer.

Why it has to be a separate package

ratify-protocol is pure Python and ships a single wheel that installs on any platform and any supported CPython. Keeping it that way matters for a library whose main job is verifying proofs inside other people's applications.

Deterministic ML-DSA-65 key generation cannot be done in pure Python here. pqcrypto, the library the SDK uses for post-quantum signing, calls PQClean's crypto_sign_keypair, which reads the operating system's random number generator and ignores any seed the caller supplies. The pure-Python ML-DSA implementations that exist carry explicit warnings against use in cryptographic applications, so they are not an option either.

So this one operation runs through the Ratify Rust core, compiled into a small extension. Because compiled code is platform-specific, it lives here instead of in the SDK. If your platform has no wheel for this package, ratify-protocol still installs and works; you simply do not get this one function.

What is inside

A single Rust function exposed to Python through PyO3, calling the same hybrid_keypair_from_seeds that the Ratify Rust SDK exposes. Signing and verification are untouched and continue to use pqcrypto.

Wheels are built with the abi3 stable ABI, so one wheel per platform covers CPython 3.10 and every later version.

Handling seeds

Both seeds are key material. Anyone holding them can reconstruct the identity and act as it. Store them with the same protection you would give a private key, and generate them from a cryptographically secure source.

Links

Apache-2.0.

Metadata

Release files for ratify-protocol-native 1.0.0a19

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

Source distribution (sdist)

Source distribution for ratify-protocol-native 1.0.0a19
File Size Uploaded
ratify_protocol_native-1.0.0a19.tar.gz 91.1 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for ratify-protocol-native 1.0.0a19
File
ratify_protocol_native-1.0.0a19-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details
ratify_protocol_native-1.0.0a19-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 abi3 Linux glibc 2.17+ x86-64 Details
ratify_protocol_native-1.0.0a19-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.10 abi3 Linux glibc 2.17+ ARM64 Details
ratify_protocol_native-1.0.0a19-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details
ratify_protocol_native-1.0.0a19-cp310-abi3-macosx_10_12_x86_64.whl CPython 3.10 abi3 macOS 10.12+ x86-64 Details

Total release size: 1.5 MB

Release files / ratify_protocol_native-1.0.0a19.tar.gz

Download URL ratify_protocol_native-1.0.0a19.tar.gz
Size 91.1 kB
Tags Source
SHA-256 checksum
How to use checksums
1e1c15714ad919b69e0a0b924de87af64802961e27876d153dc3b7b16d51394a
BLAKE2b-256 checksum
How to use checksums
45a41a0f936796dbb185c3fd18b6532d46aaa4d7a2c3718f4a3580898f85f6a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 30, 2026.

Transparency log

Release files / ratify_protocol_native-1.0.0a19-cp310-abi3-win_amd64.whl

Download URL ratify_protocol_native-1.0.0a19-cp310-abi3-win_amd64.whl
Size 186.0 kB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
a007b0382ccaf4af3293746c14b8813ba05f04a55aa64c33bb27689c7802667c
BLAKE2b-256 checksum
How to use checksums
424d2f5379b33e02cb11bb9f24bf296b71a671fdb2f80549324051919cb4ed5a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 30, 2026.

Transparency log

Release files / ratify_protocol_native-1.0.0a19-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL ratify_protocol_native-1.0.0a19-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 337.4 kB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
efc8269b3b68ce5326e05ddb241346b5a5d3b1cb70961f3b008e643fdfbd28a8
BLAKE2b-256 checksum
How to use checksums
76f4672accb09c2e5ff37bda68981ff9331c124e53838545d1346b057cbd4a1a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 30, 2026.

Transparency log

Release files / ratify_protocol_native-1.0.0a19-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL ratify_protocol_native-1.0.0a19-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 333.1 kB
Tags CPython 3.10 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
6e42627b3132e27b29fad3c33a464051adbe722fd05680e734713f53db2f4e85
BLAKE2b-256 checksum
How to use checksums
28514fd528b0818d3df3c5898ffa05f8963f5bdd840d29fffce39e880ac965b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 30, 2026.

Transparency log

Release files / ratify_protocol_native-1.0.0a19-cp310-abi3-macosx_11_0_arm64.whl

Download URL ratify_protocol_native-1.0.0a19-cp310-abi3-macosx_11_0_arm64.whl
Size 297.8 kB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
13471619b69cadbf97a59838ec55562481036006779ad1cb1d59e7c4926515cc
BLAKE2b-256 checksum
How to use checksums
84f2ba46ee8e9da55ab984c0d8c5167c0fdc70e6d2731888a27f295f49fd4660
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 30, 2026.

Transparency log

Release files / ratify_protocol_native-1.0.0a19-cp310-abi3-macosx_10_12_x86_64.whl

Download URL ratify_protocol_native-1.0.0a19-cp310-abi3-macosx_10_12_x86_64.whl
Size 287.1 kB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
9b743e8045822dd6ac7386246341f0d72fe0ee76cfb5a10256e991eac3d98a86
BLAKE2b-256 checksum
How to use checksums
49d32b9692349d150a09e6a0c45eb3ac170eb40379ab65356eab357d4524a1d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 30, 2026.

Transparency log
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