signdocumentsonchain.com
← Post-quantum signatures
Verification

How to verify a post-quantum signed document yourself, step by step

A proof is only worth something if you can check it without asking the company that made it. Here is how to check one of our certificates in your browser, on the command line, offline, or against your own blockchain node.

Short answer. For a quick check, drop the signed PDF or its certificate.json on /verify: the fingerprint is computed in your browser and nothing is uploaded. For an independent check, download our ML-DSA-87 public key from /api/v1/pq-key, confirm its SHA-512 fingerprint, and run the open-source (MIT) verifier with node verify.mjs certificate.json contract.pdf. It recomputes the commitment, the Merkle proof, both ML-DSA-87 signatures and the Base transaction, and exits with code 0 only if every check passes.

What you need

  • The signed PDF everyone received when the last signer finished. Keep it: we keep files for 30 days after completion, then only hashes, the manifest and the onchain proof remain.
  • The certificate.json file from the document page (the manifest whose SHA-512 is the commitment). The signed PDF also carries the certificate signature as an attachment named signdocumentsonchain-signature.json.
  • For the command-line check: Node.js and the four verifier files (package.json, core.mjs, key.mjs, verify.mjs), downloadable from signdocumentsonchain.com/verifier/ and linked from /security/cryptography.
  • Use the original file. A PDF that was re-saved, printed to PDF again or edited in another program has different bytes, so its fingerprint will not match. Verify the file you received, not a converted copy.

Option 1: the quick check in your browser

This is convenient, but it still runs on our website. If you need a check that does not depend on us, use option 2.

  1. Open /verify. No account is needed.
  2. Drop the signed PDF, or certificate.json. Your browser computes the SHA-512 of the PDF, or the commitment of the JSON (its canonical form: keys sorted, no whitespace). The file itself is not uploaded.
  3. The page looks up that fingerprint and shows whether it matches a completed document, when it was signed and the Base transaction that anchors it. It never shows names or emails.

Option 2: the independent check with the open-source verifier

  1. Get the public key. Download /api/v1/pq-key. It returns the ML-DSA-87 public key (raw, base64, and as a PEM), the standard it follows (FIPS 204, pure mode, empty context) and its fingerprint.
  2. Confirm the key. Compute the SHA-512 of the raw 2,592-byte key yourself, for example: curl -s https://signdocumentsonchain.com/api/v1/pq-key | jq -r .public_key_raw_base64 | base64 -d | shasum -a 512. Compare it with the fingerprint on /security/cryptography and in the verifier's key.mjs. Three independent copies that match are hard to fake.
  3. Install the verifier: put the four files in a folder and run npm install.
  4. Run it: node verify.mjs certificate.json contract.pdf. Passing the PDF also checks that it is exactly the file that was signed.
  5. Read the result: one line per check, and exit code 0 only if all of them pass.

What each check proves

CheckWhat it proves
CommitmentThe certificate (document fingerprint, signers, times, IPs, salt) is exactly the one that was sealed: SHA-512 of the canonical manifest.
FileYour PDF is byte for byte the signed file: its SHA-512 matches the manifest.
Certificate signature (ML-DSA-87)We issued this certificate. Signed at issuance, it is authentic even without any blockchain.
Merkle proofThe commitment is included in a batch root: SHA-512 leaf and node hashes lead to the root.
Batch signature (ML-DSA-87)We vouched for that exact root on that exact chain. This, not the blockchain, proves the batch came from us.
Base transactionThe root was written to Base, in a block whose time sets the latest date the document could have been signed.

Checking by hand, without any of our code

An expert witness can repeat these steps with free tools. That is what makes the proof independent of signdocumentsonchain.com.

  1. Hash the signed PDF: shasum -a 512 file.pdf on macOS or Linux, certutil -hashfile file.pdf SHA512 on Windows. It must match the document SHA-512 printed on the certificate page.
  2. Compute the commitment: take certificate.json, sort the keys recursively, remove all whitespace, and hash the result with SHA-512.
  3. Open the Base transaction on a block explorer. Its input data is 0x53444f4304 ("SDOC" plus version 4) followed by the 64-byte Merkle root.
  4. Walk the Merkle proof in certificate.json: leaf = SHA-512(0x00 || commitment), then for each sibling, node = SHA-512(0x01 || smaller || larger). You must land on that root.
  5. Check the ML-DSA-87 signatures with any FIPS 204 library and the public key, then read the block time: that is the latest date the document could have been signed, set by the network, not by us.

Offline mode and zero-trust mode

  • Offline: node verify.mjs certificate.json --offline checks hashes, the Merkle proof and the ML-DSA-87 signatures with no network access at all. Use it in an air-gapped environment or decades from now if no Base node is at hand.
  • Your own node: node verify.mjs certificate.json --rpc https://your-base-node reads the transaction from a Base node you run or choose, so you trust no one, us included.
  • Any FIPS 204 library works: the signed statements are canonical JSON (keys sorted, no whitespace) signed in pure mode with an empty context. You can rewrite the check in another language without our code.

Why this check stays valid against quantum computers

Every check that proves authenticity or integrity uses a CNSA 2.0 algorithm: ML-DSA-87 for the signatures and SHA-512 for the fingerprints and the tree. Neither has a known efficient quantum attack. The Base transaction is signed with ECDSA, which a quantum computer could someday forge, so the verifier never accepts a root on the strength of the transaction alone. A root without our ML-DSA-87 signature fails, whoever sent it.

That is why the check you run today should give the same answer in 2045. The background is on /post-quantum/blockchain-timestamps-quantum-risk.

What verification does not tell you

It proves the document, the signing record and when they were sealed. It does not prove that the person behind an email address is who they claim to be, unless the sender required a verified identity (government ID and selfie through Stripe Identity, plus sanctions screening), which is then recorded in the certificate. And it does not upgrade the legal category: this is a simple electronic signature, not a qualified signature or a notarization.

Frequently asked questions

Do I need an account to verify a signed document?

No. /verify is public, and the open-source verifier runs on your own machine.

Is my document uploaded when I verify it?

No. The page computes the SHA-512 fingerprint in your browser and only looks up that fingerprint.

Where is the ML-DSA-87 public key?

At /api/v1/pq-key, in the verifier's key.mjs file and in our source. Its SHA-512 fingerprint is published on /security/cryptography so you can compare all three.

Can I verify without internet access?

Yes. Run node verify.mjs certificate.json --offline. It checks the hashes, the Merkle proof and both ML-DSA-87 signatures. Only the Base transaction check needs a network.

What if signdocumentsonchain.com no longer exists?

Keep the signed PDF, certificate.json and a copy of the verifier and public key. The checks need nothing from us: the signatures verify with the public key and the root is on a public blockchain.

Sources

  1. NIST FIPS 204: Module-Lattice-Based Digital Signature Standard https://csrc.nist.gov/pubs/fips/204/final
  2. NIST FIPS 180-4: Secure Hash Standard (SHA-512) https://csrc.nist.gov/pubs/fips/180-4/upd1/final
  3. NSA: CNSA 2.0 FAQ https://media.defense.gov/2022/Sep/07/2003071836/-1/-1/0/CSI_CNSA_2.0_FAQ_.PDF
  4. Base documentation: transaction finality https://docs.base.org/base-chain/network-information/transaction-finality

Keep reading

Send your first document free
3 documents a month free, then 1 credit per document. No subscription, no per-seat fees.
Send a document
General information, not legal advice. Check the rules for your specific case.
Also available in: Español