Skip to main content

pylongfellow

pylongfellow provides a Python interface to implementations of Longfellow zero-knowledge proofs over ISO 18013-5 mdoc credentials.

Three backends are supported:

The package is experimental and unstable.

CI Docs PyPI Python License

Installation

pip install pylongfellow

Wheels containing all three backends are published for CPython 3.11–3.14 on Linux x86_64 (manylinux and musllinux). On any other platform pip falls back to the source distribution. Source builds are tested on Linux only. See the development page.

Usage

import cbor2

from pylongfellow import Pylongfellow, mdoc
from pylongfellow.backends.google_cpp import generate_circuit

longfellow = Pylongfellow(backend="google-cpp")

circuit = generate_circuit(7, 1)  # or Path(...).read_bytes()
longfellow.load_circuit(circuit, 7, 1)

claims = [mdoc.RequestedAttribute("org.iso.18013.5.1", "age_over_18", cbor2.dumps(True))]
issuer_public_key = mdoc.PublicKey(x, y)

proof = longfellow.prove(credential, issuer_public_key, transcript, claims, now)
longfellow.verify(issuer_public_key, transcript, claims, now, proof, doctype)  # raises on failure

Examples are in examples/.

Documentation

https://pylongfellow.readthedocs.io/en/stable/. The API reference is generated from the docstrings and carries the exact types of every function.

Upstream

The upstreams are vendored as git submodules and built from source:

The pins do not float: upstream ABIs and circuits can change between releases. A nightly canary runs the test suite against both upstream HEADs.

Development

git submodule update --init --recursive
uv sync
uv run pytest
uv run ruff check . && uv run ruff format --check .
uv run mypy

Build prerequisites and single-backend builds are on the development page.

Status

You should not rely on this code.

  • Wheels cover CPython 3.11–3.14 on Linux x86_64 only.
  • Source builds are tested on Linux only.
  • The API changes between minor versions.

License

pylongfellow is licensed Apache-2.0.

The vendored backends are licensed as follows:

  • longfellow-zk/longfellow-zk — Apache-2.0
  • abetterinternet/zk-cred-longfellow — MPL-2.0

pylongfellow is not affiliated with Google, ISRG, or the European Commission.

Metadata

Release files for pylongfellow 0.8.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 pylongfellow 0.8.0
File Size Uploaded Provenance Actions
pylongfellow-0.8.0.tar.gz 36.9 MB With provenance Details for pylongfellow-0.8.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for pylongfellow 0.8.0
File Actions
pylongfellow-0.8.0-cp314-cp314-musllinux_1_2_x86_64.whl CPython 3.14 CPython 3.14 Linux musl 1.2+ x86-64 Details for pylongfellow-0.8.0-cp314-cp314-musllinux_1_2_x86_64.whl
pylongfellow-0.8.0-cp314-cp314-manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.28+ x86-64 Details for pylongfellow-0.8.0-cp314-cp314-manylinux_2_28_x86_64.whl
pylongfellow-0.8.0-cp313-cp313-musllinux_1_2_x86_64.whl CPython 3.13 CPython 3.13 Linux musl 1.2+ x86-64 Details for pylongfellow-0.8.0-cp313-cp313-musllinux_1_2_x86_64.whl
pylongfellow-0.8.0-cp313-cp313-manylinux_2_28_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ x86-64 Details for pylongfellow-0.8.0-cp313-cp313-manylinux_2_28_x86_64.whl
pylongfellow-0.8.0-cp312-cp312-musllinux_1_2_x86_64.whl CPython 3.12 CPython 3.12 Linux musl 1.2+ x86-64 Details for pylongfellow-0.8.0-cp312-cp312-musllinux_1_2_x86_64.whl
pylongfellow-0.8.0-cp312-cp312-manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ x86-64 Details for pylongfellow-0.8.0-cp312-cp312-manylinux_2_28_x86_64.whl
pylongfellow-0.8.0-cp311-cp311-musllinux_1_2_x86_64.whl CPython 3.11 CPython 3.11 Linux musl 1.2+ x86-64 Details for pylongfellow-0.8.0-cp311-cp311-musllinux_1_2_x86_64.whl
pylongfellow-0.8.0-cp311-cp311-manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.28+ x86-64 Details for pylongfellow-0.8.0-cp311-cp311-manylinux_2_28_x86_64.whl

Total release size: 71.4 MB

Release files / pylongfellow-0.8.0.tar.gz

Download URL pylongfellow-0.8.0.tar.gz
Size 36.9 MB
Tags Source
SHA-256 checksum
How to use checksums
74903c250e7cf866d460e3abb12e809f082b45c0a166f107f35f03b2f840755a
BLAKE2b-256 checksum
How to use checksums
f414f3af516a25f1559b033033d766b06de0d1b6fc7890bb6467b8181503b318
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 14, 2026.

Transparency log

Release files / pylongfellow-0.8.0-cp314-cp314-musllinux_1_2_x86_64.whl

Download URL pylongfellow-0.8.0-cp314-cp314-musllinux_1_2_x86_64.whl
Size 5.1 MB
Tags CPython 3.14 Linux musl 1.2+ x86-64
SHA-256 checksum
How to use checksums
8da0124a98bc4623148a72fd18e868df49df547297f5d98c71f73a6b47d73ccd
BLAKE2b-256 checksum
How to use checksums
8eec88fa8896af0d8d5af8ae4004f325c1bf2a7419beacbb5622a84aa8673c69
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 14, 2026.

Transparency log

Release files / pylongfellow-0.8.0-cp314-cp314-manylinux_2_28_x86_64.whl

Download URL pylongfellow-0.8.0-cp314-cp314-manylinux_2_28_x86_64.whl
Size 3.5 MB
Tags CPython 3.14 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
f8b124a8a03ce88081cc29337bd690ed5faed0b40692bff65960695973f3c3ef
BLAKE2b-256 checksum
How to use checksums
10b8211a5aa7f32d0d511ef8f90719024a251ad3ae2eec334ffd99137a4f5279
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 14, 2026.

Transparency log

Release files / pylongfellow-0.8.0-cp313-cp313-musllinux_1_2_x86_64.whl

Download URL pylongfellow-0.8.0-cp313-cp313-musllinux_1_2_x86_64.whl
Size 5.1 MB
Tags CPython 3.13 Linux musl 1.2+ x86-64
SHA-256 checksum
How to use checksums
580f43e81ef00d044b543c421c75edddd743121bc47f3089e80d7f46fd47e675
BLAKE2b-256 checksum
How to use checksums
4f2c1926927f2b1d30e9e93126d25ba10c96c297d0abb793de124b0bf8020a3f
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 14, 2026.

Transparency log

Release files / pylongfellow-0.8.0-cp313-cp313-manylinux_2_28_x86_64.whl

Download URL pylongfellow-0.8.0-cp313-cp313-manylinux_2_28_x86_64.whl
Size 3.5 MB
Tags CPython 3.13 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
8349bcce347aadf0783f446aed19c218fe1ff107771ce72341e891365f71635c
BLAKE2b-256 checksum
How to use checksums
bb9ff6c9627f2b62e13b2dce88a7cd1973f33b2a3e5d407c7d35ad56f3fea206
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 14, 2026.

Transparency log

Release files / pylongfellow-0.8.0-cp312-cp312-musllinux_1_2_x86_64.whl

Download URL pylongfellow-0.8.0-cp312-cp312-musllinux_1_2_x86_64.whl
Size 5.1 MB
Tags CPython 3.12 Linux musl 1.2+ x86-64
SHA-256 checksum
How to use checksums
8f0ef9bba60383ff31a85f311719fdc5271cd3624da7979a79092885eed00e5f
BLAKE2b-256 checksum
How to use checksums
41a34c00472223342a8f3f715c2ebf222513e5225e040154c168edfad2d31657
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 14, 2026.

Transparency log

Release files / pylongfellow-0.8.0-cp312-cp312-manylinux_2_28_x86_64.whl

Download URL pylongfellow-0.8.0-cp312-cp312-manylinux_2_28_x86_64.whl
Size 3.5 MB
Tags CPython 3.12 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
52fbdb7ef60403785ef86d2ec1700fc05ae7e7d320f45d85b64e0f172eaa52cc
BLAKE2b-256 checksum
How to use checksums
87c59565eb37057cd08a74e9db080f226a31367c73f0cc9a1260251de87c6027
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 14, 2026.

Transparency log

Release files / pylongfellow-0.8.0-cp311-cp311-musllinux_1_2_x86_64.whl

Download URL pylongfellow-0.8.0-cp311-cp311-musllinux_1_2_x86_64.whl
Size 5.1 MB
Tags CPython 3.11 Linux musl 1.2+ x86-64
SHA-256 checksum
How to use checksums
3ff72b1df0f42d0d892030c2bc551ffe10b1c282c0d074c983f1a05c5540c8c7
BLAKE2b-256 checksum
How to use checksums
c6b8f6509e190ebdabb6b42e722a5a7e11291ba79874a6087b387f1a9340828f
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 14, 2026.

Transparency log

Release files / pylongfellow-0.8.0-cp311-cp311-manylinux_2_28_x86_64.whl

Download URL pylongfellow-0.8.0-cp311-cp311-manylinux_2_28_x86_64.whl
Size 3.5 MB
Tags CPython 3.11 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
75e8804e0daa0992bc8396ed3f05fed7ce299ede4c1dc0faf769ab635064a4d7
BLAKE2b-256 checksum
How to use checksums
dab3374b02ccbad76d251396ff24eacc128a6236a12f432a8f27c4641a3cc6db
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 14, 2026.

Transparency log

Security for pylongfellow 0.8.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.

Full provenance

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

Select from 9 files

Attestation for pylongfellow-0.8.0.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 14, 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.

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