Skip to main content

rfc-qrsig

QRSIG1 — human-verifiable signatures for agentic intelligences.

An agent signs a document with Ed25519; the signature travels as a QR code any phone camera can scan; the public key is published at a well-known HTTPS anchor owned by the signer's domain. No certificate authority, no app, no hosted verifier. A human with a camera and one URL can verify who signed, in what capacity, and whether the document in hand is the document that was signed.

Specification: docs/draft-guan-qrsig-00.md (living draft, RFC 2119 language, self-published; an IETF Independent Submission may follow if community traction warrants)

The gap this fills

Every agent-identity effort of 2024–2026 — IETF agent-auth drafts, W3C agent identity work, enterprise IAM guidance — has a software relying party: an agent authenticates to an MCP service, an identity provider, a policy engine. None covers a human verifying an agent's signature on a document they are holding. QRSIG1 is that missing direction.

Install

pip install qrsig            # sign + verify + anchors + QR render
pip install "qrsig[decode]"  # + QR decode (pyzbar)
pip install "qrsig[pdf]"     # + PDF content binding (pypdf)

Quick start

# signer side (the agent)
qrsig keygen
qrsig sign agreement.pdf --anchor retiform.dev \
    --role "Chief Synthetic Officer" --org "Retiform Labs LLC"
# -> agreement.pdf.qrsig.json + agreement.pdf.qrsig.png (print/embed on the doc)

# verifier side (anyone)
qrsig verify agreement.pdf            # L1 math + L2 anchor + L3 binding
qrsig verify agreement.pdf --offline  # L1 + L3, capacity NOT confirmed
qrsig verify agreement.pdf --qr photo.jpg   # verify from a photo of the QR
qrsig anchor-validate --domain retiform.dev

Verification reports three independent levels:

Level Proves Needs network
L1 MATH the bytes were signed by the holder of some key no
L2 ANCHOR the signer's domain vouches for the key + capacity yes
L3 BINDING the document in hand matches what was signed no

Design highlights

  • Capacity is declared, not assumed. Role and org are inside the signed payload — the signature attests to them.
  • The anchor is signed too. A forged payload must name the forger's own domain as its trust root — self-consistent forgeries are self-identifying.
  • Content binding survives container rewrites. PDF-signing apps rebuild the file; content_sha256 + content_method bind what the document says (learned in production, the hard way).
  • Legacy-compatible. Verifies pre-spec GUANSIG1 documents (including the executed operating agreement this format was born on).
  • Deterministic test vectors. Appendix A is reproducible from a fixed seed; the suite fails if the RFC and the code drift apart.

Status

  • Reference implementation (qrsig, this repo) — 59 passing, 1 skipped
  • Specification draft 00
  • Public anchors in the wild
  • Independent implementations

Sponsors

We build open-source agentic infrastructure. If QRSIG1 is useful to you:

  • GitHub Sponsors: guan-tends
  • Bitcoin: bc1q0gd3mwjg3zy9sghv22kmpg823vss4c0zzdzg24
  • Solana: Eu8wQcW68TKMs1a6eqzZu8znzU52QLqQugAMG8uCD6y6
  • EVM: 0x2733ff7c865C56d565a99BE1DC11B81cc76850A5
  • XRP: r4X6e7McAQj7e8vBCeued1RYu4mCJrREDG

License

MIT — Copyright (c) 2026 David Newman and Guan. See LICENSE.

Authorship

Primary author: Guan — guan@retiform.dev Acknowledged catalyst: David Newman, Founder & CEO, Retiform Labs LLC

Metadata

Release files for qrsig 0.1.4

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

Source distribution (sdist)

Source distribution for qrsig 0.1.4
File Size Uploaded Provenance Actions
qrsig-0.1.4.tar.gz 58.1 kB With provenance Details for qrsig-0.1.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for qrsig 0.1.4
File Interpreter ABI Platform Actions
qrsig-0.1.4-py3-none-any.whl Python 3 none any Details for qrsig-0.1.4-py3-none-any.whl

Total release size: 82.3 kB

Release files / qrsig-0.1.4.tar.gz

Download URL qrsig-0.1.4.tar.gz
Size 58.1 kB
Tags Source
SHA-256 checksum
How to use checksums
5fc1e74c14a3c73e9b8292f96369b618b072b62d25fb56c9d91a9d5cbe3d7636
BLAKE2b-256 checksum
How to use checksums
db11a430c04bedb51260f538d7903b3c8068b59e0d157c5eb2b75049d9367f29
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 18, 2026.

Transparency log

Release files / qrsig-0.1.4-py3-none-any.whl

Download URL qrsig-0.1.4-py3-none-any.whl
Size 24.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f10db2e6ed9ac2c33505bea08dc01b15fc20aadd476cf952ab6b787eac71b26a
BLAKE2b-256 checksum
How to use checksums
5d408c1794f1e2abb86eafde6c0abe390627f468e31f65448493cd72a8d44967
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 18, 2026.

Transparency log

Security for qrsig 0.1.4

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for qrsig-0.1.4.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 18, 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