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.
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.
- Open /verify. No account is needed.
- 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.
- 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
- 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.
- 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.
- Install the verifier: put the four files in a folder and run npm install.
- Run it: node verify.mjs certificate.json contract.pdf. Passing the PDF also checks that it is exactly the file that was signed.
- Read the result: one line per check, and exit code 0 only if all of them pass.
What each check proves
| Check | What it proves |
|---|---|
| Commitment | The certificate (document fingerprint, signers, times, IPs, salt) is exactly the one that was sealed: SHA-512 of the canonical manifest. |
| File | Your 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 proof | The 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 transaction | The 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.
- 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.
- Compute the commitment: take certificate.json, sort the keys recursively, remove all whitespace, and hash the result with SHA-512.
- Open the Base transaction on a block explorer. Its input data is 0x53444f4304 ("SDOC" plus version 4) followed by the 64-byte Merkle root.
- 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.
- 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
- NIST FIPS 204: Module-Lattice-Based Digital Signature Standard https://csrc.nist.gov/pubs/fips/204/final
- NIST FIPS 180-4: Secure Hash Standard (SHA-512) https://csrc.nist.gov/pubs/fips/180-4/upd1/final
- NSA: CNSA 2.0 FAQ https://media.defense.gov/2022/Sep/07/2003071836/-1/-1/0/CSI_CNSA_2.0_FAQ_.PDF
- Base documentation: transaction finality https://docs.base.org/base-chain/network-information/transaction-finality
Keep reading
Most signed contracts today are protected by RSA or elliptic-curve cryptography, which a large quantum computer could break. A quantum-safe signature uses algorithms built to survive that day.
Are blockchain timestamps quantum-safe? What breaks, what holds, and how to design around itMany document services write a hash to a blockchain and call it proof. That proof leans on elliptic-curve signatures that a quantum computer could forge. Here is which parts of a blockchain timestamp survive and which do not.
ML-DSA and FIPS 204, explained without the mathML-DSA is the signature algorithm NIST chose to replace RSA and ECDSA in a world with quantum computers. Here is what it is, how big its keys are and what it costs you in practice.
SHA-512 vs SHA-256 in a quantum world: is SHA-256 still enough?Quantum computers break RSA and ECDSA outright, but they only dent hash functions. The dent is why the NSA asks for SHA-384 or SHA-512 and why we fingerprint every document with SHA-512.
Post-quantum signatures for law firms: evidence that still authenticates when the case comes backLawyers deal in documents that get tested years after signing: settlements, releases, engagement letters, IP assignments. The cryptography that proves those files are genuine has an expiry date. Here is what that means for practice, and how to talk to clients about it.