Skip to content

v1.1.0: a command-line verifier, and a page that takes your own key

Choose a tag to compare

@swapanshridhar swapanshridhar released this 19 Oct 22:42
· 2 commits to main since this release
v1.1.0
6b1dbf5

A command-line verifier, and a page that takes your own key.

Until now this repository held one HTML file. It now also holds the Go source
for plainreal-verify, a standalone CLI that checks the same records with no
browser and no network.

Install

go install github.com/plainreal/verify/cmd/plainreal-verify@v1.1.0

That builds from source the module proxy fetched by tag, so there is nothing
to download and nothing to trust. Otherwise the binaries below cover macOS and
Linux on Intel and ARM, and Windows on both.

Check what you downloaded against the signed tag, not against SHA256SUMS
here.
That file sits in the repository it describes, so it is only as good as
write access to this repository. The tag's message is signed and carries every
hash:

git tag -v v1.1.0
shasum -a 256 -c SHA256SUMS

What changed

The page can check your records. It carried a single hard-coded demo key, so
a customer could not use it on their own deployment at all. Paste a public key,
as PEM or 64 hex characters. A key it cannot read is refused rather than
quietly ignored, because falling back to our demo key would report a verdict
about a key you never supplied.

Both tools report the same five outcomes. The CLI had two words for the
page's five, so "signed by a key you do not hold" arrived as a red FAILED on a
record that was intact. A record from a newer schema version exited 1, the code
meaning "checked and did not verify", while printing that no verdict had been
reached; it is now COULD NOT VERIFY and exits 2.

The README says what each tool actually checks. Measured against Level 0,
everything decidable from one record offline, the CLI enforces all twelve local
invariants and the page enforces none. A record that is properly signed and
internally contradictory gets a green result in the browser and a refusal from
the CLI. The two are not interchangeable where depth matters, and closing that
gap is the next release.

A release gate does require the two to agree, but it can only compare what both
check. Where that claim is fully earned is the cryptography: the browser's
Ed25519 is gated against Go's standard library across 76 adversarial cases, and
neither was copied from the other.

Verifying the page itself

sha256(public/index.html)
1f2b081b5b82aa3c01e72665999e353686992980781cc885ac6d1f905430a4cc

Hash a copy fetched directly. A copy produced by the page's save button or by
Save Page As is re-serialised from the live DOM: it behaves identically and is
not the published bytes.