Domain-Keyed Document Stamp

An open protocol for verifying the origin and content of documents.

  • A phone held over a printed page, its camera lined up on the stamp in the page's corner. The phone is drawn in blue.

    Frictionless

    Issuing software creates a stamp with a single function call. Any conforming verifier can check it, including one that runs in a web browser, without an account or a fee.

  • A printer with a sheet in its output tray. The stamp printed on the sheet is drawn in blue.

    Portable

    The signed data is contained in the QR code itself, so a stamp remains verifiable after the document is printed, photocopied or scanned.

  • A stamp taken apart into five stacked layers, each a published standard: QR code, Base45, DEFLATE, Ed25519 and DNS. The Ed25519 signature layer is drawn in blue. DNSRFC 1035 Ed25519RFC 8032 DEFLATERFC 1951 Base45RFC 9285 QRISO/IEC 18004

    Compliant

    Each component is an existing published standard: QR codes, Base45, DEFLATE compression, Ed25519 signatures and the Domain Name System.

  • Four servers, each publishing its own key, standing around an empty place where a central authority would be. One server is drawn in blue.

    Decentralised

    No central authority, registry or blockchain is involved. Each issuer publishes its own key in the DNS of its own domain, and anyone may implement the protocol without permission.

Overview

A DKDS stamp is a QR code printed on a document. It contains the key facts of the document, the domain name of the issuer and a digital signature over both. The public key needed to check the signature is published in the issuer's DNS records, in a manner similar to DKIM for email, so that any party can verify a stamp without an account or an intermediary.

A verifier reports the domain that signed the stamp and the facts it contains. The reader, a person or a system that processes incoming documents, then compares these facts with those printed on the document. A difference between the two indicates that the document was altered after it was issued.

Document as received
Northwind B.V.Havenstraat 12, 3011 AB RotterdamVAT NL862345678B01
Invoice
Bill toHarbour Logistics B.V.Kade 4, 1013 AA Amsterdam
Invoice no.
2026-0917
Date
30 Sep 2026
Due
30 Oct 2026
DescriptionQtyPriceAmount
Pallet racking NR-24014245.003,430.00
Installation1547.27547.27
Subtotal
3,977.27
VAT 21%
835.23
Total EUR
4,812.50

Payment by 30 Oct 2026 to
IBAN LT12 1000 0111 0100 1000

Verifier output
> read QR code, 380 characters
> query TXT k2026._dkds.northwind.example
> check Ed25519 signature
Outcomevalid
Domainnorthwind.example
Issued2026-09-30 09:00:00 UTC
DNSSECvalidated
Stated by northwind.example
SupplierNorthwind B.V.
Invoice no.2026-0917
Date2026-09-30
CustomerHarbour Logistics B.V.
Amount4,812.50 EUR
Pay to IBANNL91 ABNA 0417 1643 00
Due2026-10-30

In this example the signature is valid, which shows that the stamp was issued by northwind.example. The bank account number in the stamp differs from the one printed on the invoice, which shows that the invoice was altered after it was issued.

The stamp shown is a valid DKDS stamp. Because northwind.example is a reserved domain name, a live verifier will not find its key.

Operation

The protocol is designed to keep the effort required of each party to a minimum at every step.

  1. northwind.exampleDNS records
    TypeNameContent
    A@203.0.113.10
    MX@10 mail.northwind.example
    TXT@v=spf1 mx -all
    TXTk2026._dkdsv=DKDS1; k=ed25519; p=6kpsY+KcUgq+9VB7Ey7F+ZVHdq6+vnuSQh7qaRRG0iw=

    Key publication

    The issuer generates a key pair and publishes the public key as a TXT record in the DNS of its domain, under a name that contains a key identifier.

  2. Northwind B.V.Invoice
    Invoice no. 2026-091730 Sep 2026
    Total EUR4,812.50

    Signing

    For each document, the issuer's software signs the key facts of the document together with the domain name and the time of signing, and prints the result on the document as a QR code.

  3. Verifier output
    Outcomevalid
    Domainnorthwind.example
    Issued2026-09-30 09:00:00 UTC
    Stated by northwind.example
    SupplierNorthwind B.V.
    Amount4,812.50 EUR

    Verification

    A verifier reads the QR code, retrieves the public key from the DNS of the domain named in the stamp and checks the signature. If the signature is valid, the verifier reports the domain and the facts.

Demonstration

This stamp was signed on 10 October 2026 with the key that dkds.org publishes at k2026._dkds.dkds.org. A verifier reports a valid signature by dkds.org and the fields the stamp contains. A phone can read the stamp from the screen; on a computer, its text can be copied and pasted into the verifier.

Text of the stamp DKDS:*50CVCKVC7*5$KE$U0NF6TF6NMDLZ3A200Z4AHM0WGCN1*DOZ1CG/OJ9O.ND/0L$195ZOIEG%D2SVDGL744N*JS3YV:3K9KB7-PNW7G$4O91$GJDY5VWS6TACAB+-MGRSGIO5NGF7RV8GH57BTU/2DQA4CFUGJVIASI6L1SD921-2MIRB30I5 F516:O3TQI$I8GYK/:JN9AROT3VBROMU2E5/IVMF+/KCXLNY5.T8.BRZ$NL2R4O3XH7R.65I175LN.9*LLCB4GVKC71%/5SQ7

Scope

A valid stamp establishes

  • That the stamp was signed with a key published by the holder of the domain.
  • That the facts in the stamp have not been altered since signing.
  • The time of signing, as stated by the signer.

A valid stamp does not establish

  • That the facts are true. A stamp identifies who stated them, not whether they are correct.
  • That the printed document matches the stamp. This comparison is made by the reader.
  • Confidentiality. The contents of a stamp can be read by anyone who scans it.

Fraud involving documents

€60 billionEstimated annual loss in Europe, with a range of €40 to 85 billion.

$85 billionEstimated annual loss in the United States, with a range of $60 to 125 billion.

The estimates cover fraud in insurance claims, social benefit claims and payments, in which an organisation pays out on the strength of documents, such as invoices, payslips, medical reports and bank statements, that have been altered or fabricated. Because PDF files and printed documents carry no reliable proof of origin, a recipient generally cannot verify one without contacting the organisation that issued it, a step that is slow and is frequently omitted.

Both estimates are for around 2024; the European one covers the European Union, the European Economic Area, the United Kingdom and Switzerland. Published national estimates account for €27 billion of the European figure; most European countries publish no estimate of such fraud. In the United States, fraud is measured separately from error only in unemployment insurance. Not all of this fraud involves altered documents, and not all of it can be prevented by verifying documents.

Further fraud involving documents

Altered and fabricated documents are also used to obtain mortgages, loans, subsidies and trade finance. The following figures were made with other methods and for other periods, and are not included in the estimates above.

  • 1,260 to 2,140 a year

    Mortgages obtained in the Netherlands with suspected fraud, for example with forged payslips and employer statements, from 2020 to 2024; an estimate by police experts.

  • €5.6 to 9.6 billion a year

    Losses to odometer fraud in sales of used cars in the European Union; an estimate of the European Parliament of 2018.

  • $3.5 billion

    Owed to 23 banks by the oil trader Hin Leong of Singapore at its collapse in 2020; its trade documents included forged bills of lading.

The method and sources of the estimates are given in a research note.

Open research note

Documents commonly used in fraud

Fraud of this kind relies on documents that one organisation issues and another relies on, while the document passes through the hands of a third party, such as an applicant, a claimant or a supplier. The following documents are commonly altered or fabricated for this purpose. Each of them can carry a DKDS stamp from its issuer.

  • Income and finance

    Payslips, bank statements, tax assessments

  • Invoices and payments

    Invoices, payment requests, receipts

  • Insurance and health

    Medical reports, sick notes, repair estimates

  • Housing

    Rental agreements, utility bills, proofs of address

  • Education and employment

    Diplomas, certificates, employment contracts

  • Official records

    Civil status certificates, register extracts, permits

  • Trade and transport

    Certificates of origin, bills of lading, delivery notes

  • Vehicles

    Registration certificates, service records, mileage statements

Passports and identity cards are not listed. They carry their own security features and, in the European Union, an electronic chip that can be verified.

Implementations

DKDS is defined by an open specification, which includes test vectors for checking the correctness of an implementation. Any party may implement the protocol without permission or fees.

Issuance

The reference implementation, dkds.js, creates stamps. It can be used as a software library, as a command-line tool or as a local HTTP service, which allows software written in other languages to create stamps. An issuer publishes its key as a single DNS record.

Open documentation

Verification

The verifier at scan.dkds.org runs in a web browser; documents are checked on the device and are not transmitted. Systems that process incoming documents verify stamps with dkds.js or with an implementation of their own.

Open verifier(scan.dkds.org)