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) — 52 tests green
  • 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.3

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.3
File Size Uploaded Provenance Actions
qrsig-0.1.3.tar.gz 25.5 kB With provenance Details for qrsig-0.1.3.tar.gz

Built distribution (wheel)

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

Total release size: 44.5 kB

Release files / qrsig-0.1.3.tar.gz

Download URL qrsig-0.1.3.tar.gz
Size 25.5 kB
Tags Source
SHA-256 checksum
How to use checksums
e681e898f16f07ec4d9d0a1e9053f865f1e4bea13da64600387a1eb91f4b5dec
BLAKE2b-256 checksum
How to use checksums
486e3680b116fb3993922c977fd33f3882b5a468bcd1d54873408aed83c8db24
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 Oct 28, 2026.

Transparency log

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

Download URL qrsig-0.1.3-py3-none-any.whl
Size 19.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fbbade679275ae7af212d62b30c02729fde852654d4b3a09999abf4ffe426bff
BLAKE2b-256 checksum
How to use checksums
f6885ea89e2d896dcbe8ec2d3b9768765c8d554653ebf8fba1c5ef34ef5f012b
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 Oct 28, 2026.

Transparency log

Security for qrsig 0.1.3

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.3.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 Oct 28, 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