Same bytes, different languages: three verifiers, one answer
A verification format with one implementation can work well. It is not yet strong evidence that the format can be implemented by anyone else.
So we built three. R-Series now has verifiers written separately in JavaScript, Python and Go. We run all three over the same set of parity cases, and a single difference counts as a defect.
This post explains what that test is, why byte-exact agreement is the bar, and what it still does not prove.
Why one verifier is not enough
When the same team writes the signer and the verifier in the same language, the two can share assumptions without anyone noticing. If both read an ambiguous field the same wrong way, every test passes and the result is still wrong.
The classic places this happens in signed JSON are:
- number formatting, such as
1.0against1, or exponent notation; - Unicode handling, such as escaped characters against raw UTF-8;
- key ordering for non-ASCII keys;
- how a library treats a missing field, a null field and an empty string; and
- error semantics, where one implementation rejects and another quietly accepts.
Each is a place where two honest implementations can disagree about a receipt nobody has touched. A second and third implementation in different languages, with different standard libraries, flush these out.
What "byte-exact" means
R-Series signs canonical bytes, produced under RFC 8785. The SHA-256 digest of those bytes is what both signatures, Ed25519 and ML-DSA-65, are checked against.
That makes agreement on bytes the real test. It is not enough for three verifiers to agree that a receipt is "valid". They must compute exactly the same canonical bytes and exactly the same digest from the same input, and reach the same verdict.
How the test runs
Every case was run through all three verifiers, and their outputs were compared. The count of differences was 0.
Cases that should fail matter as much as cases that should pass. A verifier that accepts everything agrees with itself perfectly; agreement is only interesting when it includes rejecting the same tampered or downgraded receipt.
What this does not prove
Parity is strong evidence. It is not proof of correctness, and it is worth saying exactly why.
- Shared specification. All three verifiers were written from the same specification. If the specification is wrong, they can agree on the wrong answer.
- Shared libraries. Where implementations lean on cryptographic libraries with common ancestry, a defect in that ancestry could be shared.
- Shared understanding. Three implementations from one programme can share an assumption. Different languages reduce common-mode errors but do not remove them.
- Finite cases. Agreement on a finite set of cases says nothing about a case no one thought to write.
The test that would answer the last two points is an implementation written by a team outside DCS Labs, from the specification alone, agreeing with ours on the same cases and cross-verifying each other's receipts. That is the next milestone we want, and we would welcome a team willing to attempt it.
Why it matters
Receipts are only useful as evidence if the person checking them does not need to trust the issuer. That has to include not trusting the issuer's verifier. Byte-exact agreement across languages is how we show that the result depends on the format, not on one codebase.
You can run the browser verifier yourself at dcslabs.ai/verify, and read the full sequence of checks on how proof works.