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.0a18

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.0a18
File Size Uploaded
ratify_protocol_native-1.0.0a18.tar.gz 91.1 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for ratify-protocol-native 1.0.0a18
File
ratify_protocol_native-1.0.0a18-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details
ratify_protocol_native-1.0.0a18-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.0a18-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.10 abi3 Linux glibc 2.17+ ARM64 Details
ratify_protocol_native-1.0.0a18-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details
ratify_protocol_native-1.0.0a18-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.0a18.tar.gz

Download URL ratify_protocol_native-1.0.0a18.tar.gz
Size 91.1 kB
Tags Source
SHA-256 checksum
How to use checksums
2ee1a3445c2cd9ff0ce00ca20391badc74844cd890a90bae60e6ebd29c729840
BLAKE2b-256 checksum
How to use checksums
9f9fedce1175fe88c66ad9626a667e83416547e4fde29ff4541bd1f20ecbb374
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.0a18-cp310-abi3-win_amd64.whl

Download URL ratify_protocol_native-1.0.0a18-cp310-abi3-win_amd64.whl
Size 186.0 kB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
cdffff5f44e91db00468b967b750e2b0301e6c532940119088ac60719556c7ce
BLAKE2b-256 checksum
How to use checksums
6fe8f1ad86f823f7e7f0682316fd5efe844cac23992ae8460fbe5213ecb79a25
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.0a18-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL ratify_protocol_native-1.0.0a18-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
78dc7950616091f36cf9016d4d769696982e5c683b29d7cfdad457f8e615c4ff
BLAKE2b-256 checksum
How to use checksums
959c013d576557af55a9cc6b966b9229bbe5b603ed084eca72a9768e6bbe6efe
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.0a18-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL ratify_protocol_native-1.0.0a18-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
6864c64dbf89670e4045689b3ea6a03281ae656a898952bed3aade71cfa83a4d
BLAKE2b-256 checksum
How to use checksums
5dcc332b2981f18328d9bd0e0b01f18047383b4d6c86d7b266c61d8dea367995
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.0a18-cp310-abi3-macosx_11_0_arm64.whl

Download URL ratify_protocol_native-1.0.0a18-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
49049d59bf9b3ca3934515ab98c1440b674d7681110bd580b488103437c262fc
BLAKE2b-256 checksum
How to use checksums
e8d83462ebe134a0d26193f46b0daee8bb155270db95ddcf2ea06dc7e4c9746c
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.0a18-cp310-abi3-macosx_10_12_x86_64.whl

Download URL ratify_protocol_native-1.0.0a18-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
e94165d387a37a061fcaa504bd879b9178624aa7fd62d65e0cc38bb6736d0164
BLAKE2b-256 checksum
How to use checksums
cd9a00ae8ee7f9936098d276f1a3f9541413434f530f9f43b3d5127c67bc957a
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