Skip to main content

qorechain-qoreseal (Python)

ML-KEM-1024 (FIPS 203) encryption of data to QoreChain accounts, for Python 3.9+. The package wraps the Rust implementation through UniFFI, so its output is byte-identical to the TypeScript, Rust, Go, Swift and Kotlin packages; all of them are checked against vectors/qoreseal-v1.json.

Install

pip install qorechain-qoreseal

Wheels: macOS (arm64, x86_64), Linux (manylinux2014 x86_64, aarch64), Windows x86_64.

Example

import qoreseal as qs

alice = qs.generate_seal_keys()
bob = qs.generate_seal_keys()

envelope = qs.seal_envelope(
    "qorechain-diana", "invoice",
    [qs.recipient_of(alice), qs.recipient_of(bob)],
    b"amount due: 120 QOR",
    aad=b"invoice-42",
)
text = qs.envelope_to_text(envelope)  # "qoreseal:..."

plaintext = qs.open_envelope("qorechain-diana", "invoice", envelope, bob, aad=b"invoice-42")
assert plaintext == b"amount due: 120 QOR"
  • mode=qs.SealMode.MLKEM uses the recipient's ML-KEM-1024 key alone; the default HYBRID adds X25519 and needs the recipient's card (verify_recipient_card).
  • Keys from a mnemonic: qs.derive_seal_keys(mnemonic); back up the mnemonic or keys.seed.
  • Publish your key: qs.build_register_kem_key_message(address, keys.mlkem_public_key), then sign the transaction hybrid (QoreSign). The KEM key registry is available on testnet; on mainnet from the v3.2.5 upgrade.
  • Private groups: qs.EpochKeyManager, qs.seal_batch, qs.open_batch.

Errors raise qs.QoreSealError.Failure with a stable code.

Limits

Only the payload is confidential: addresses, amounts, timing and sizes stay public; no zero-knowledge proof is involved; envelopes are not signed; losing the seed or mnemonic loses access to the data. The construction is pending external review before 1.0.

License

Apache-2.0.

Metadata

Release files for qorechain-qoreseal 0.1.0

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

Source distribution (sdist)

Source distribution for qorechain-qoreseal 0.1.0
File Size Uploaded Provenance Actions
qorechain_qoreseal-0.1.0.tar.gz 46.7 kB Without provenance Details for qorechain_qoreseal-0.1.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for qorechain-qoreseal 0.1.0
File Actions
qorechain_qoreseal-0.1.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details for qorechain_qoreseal-0.1.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
qorechain_qoreseal-0.1.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details for qorechain_qoreseal-0.1.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
qorechain_qoreseal-0.1.0-py3-none-macosx_11_0_x86_64.whl Python 3 none macOS 11.0+ x86-64 Details for qorechain_qoreseal-0.1.0-py3-none-macosx_11_0_x86_64.whl
qorechain_qoreseal-0.1.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for qorechain_qoreseal-0.1.0-py3-none-macosx_11_0_arm64.whl

Total release size: 2.9 MB

Release files / qorechain_qoreseal-0.1.0.tar.gz

Download URL qorechain_qoreseal-0.1.0.tar.gz
Size 46.7 kB
Tags Source
SHA-256 checksum
How to use checksums
b52e5a8250d099dfc21b855e56528ea0b228a509806c8e818163ae1fb70a0cd1
BLAKE2b-256 checksum
How to use checksums
4af59249a9838e83b626a081a90ca0db1ade92d545fcf5a33c0846c054e16750
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.7

Release files / qorechain_qoreseal-0.1.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL qorechain_qoreseal-0.1.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 709.1 kB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
11ab0b0c853b961b02c857ad016c9e8dc1ceb59fef635cda1ed1e0fe35aaf2a3
BLAKE2b-256 checksum
How to use checksums
16a6453655999112f0cad868d2beeacd13fb5e0db08068838f00c3c3501cd894
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.7

Release files / qorechain_qoreseal-0.1.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL qorechain_qoreseal-0.1.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 725.1 kB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
fc69fc8c5f5bf2fa1368a8cca94baedf49ab5551aff857897e577a8139ccf62c
BLAKE2b-256 checksum
How to use checksums
ffb667d1e81a03e75d4b743a887d7c7c157ea3218a7443f751eeca0964e1ac09
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.7

Release files / qorechain_qoreseal-0.1.0-py3-none-macosx_11_0_x86_64.whl

Download URL qorechain_qoreseal-0.1.0-py3-none-macosx_11_0_x86_64.whl
Size 678.1 kB
Tags Python 3 macOS 11.0+ x86-64
SHA-256 checksum
How to use checksums
bcce0ed77461947a608bd71c98491ba9d097520a45b56d88452d07aeb6fe6bec
BLAKE2b-256 checksum
How to use checksums
6f3e34ba9644476e315f503d908c0a2928855f05252d2dc069f9ab640aeca509
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.7

Release files / qorechain_qoreseal-0.1.0-py3-none-macosx_11_0_arm64.whl

Download URL qorechain_qoreseal-0.1.0-py3-none-macosx_11_0_arm64.whl
Size 711.4 kB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
c424dce12dce40953786cdde0721539a0cc36fa5fad9a23b8cd29e2bd3deb70f
BLAKE2b-256 checksum
How to use checksums
466c0b35fd25d2002153ec124e4f9e504a5c769dc134f7a4f689cc204f91565e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.7

Security for qorechain-qoreseal 0.1.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.0 This release

5 release files No 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