Repository navigation
Releases
v1.2.0: the page checks what the command-line tool checks
The browser page now checks what the command-line tool checks.
Until this release the page confirmed the signature, the field names and the
schema version, and nothing inside the fields. A properly signed record that
claimed to choose between alternatives while listing none got a green result in
the browser and a refusal from the CLI. The page now validates every field of a
TIER-A record and the twelve rules that can be decided from one record, written
separately in JavaScript from the record specification, and lists each rule a
record breaks.
One verdict for the same bytes
Both tools now ask their questions in the same order, signature before fields,
and a release gate requires them to give the same verdict on every record it
tries: 4,762 of them, signed and edited after signing. The shared test cases
both are held to now ship in verifycore/testdata/invariant_vectors.json, and
the page's own Run all checks runs them in your browser.
Some verdicts change
If you script against the exit code or --json, read Verdicts that changed
in v1.2.0 in the README first. In short: a record edited after signing is
reported as altered even when the edit also broke a rule; a record that names a
different signing key than yours is UNKNOWN_KEY even if its signature happens
to verify under yours; a missing top-level field, a misplaced null, a non-v4
UUID and a key that differs from a field name only in letter case are refused;
an envelope schema_version of any 1.x.y is accepted.
Checking the page
curl -L https://verify.plainreal.com/ -o verify.html
shasum -a 256 verify.html
ca8c6f417d2e644ec550c6eedff3a43cbf1039131aa1c0fe48eecd7cf281b368
Install
go install github.com/plainreal/verify/cmd/plainreal-verify@v1.2.0
Check a download 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:
git tag -v v1.2.0
shasum -a 256 -c SHA256SUMS
The published go.mod now lists only what this code imports. Earlier releases
carried dependencies from the private repository that the published code never
used. The binaries were not affected.
v1.1.1: the instruction for checking this page told you to do it wrong
The instruction for checking this page told you to do it wrong.
v1.1.0's README said to fetch public/index.html with curl before comparing it
against the hash in the signed tag. This site serves the page at / and
redirects /index.html to it, so curl without -L writes an empty file.
Hash that and you get e3b0c442..., which is the SHA-256 of nothing, not of a
tampered page. Anyone following the instruction concludes the page was altered.
That is the worst place for a false negative: the documentation of a tool whose
only job is telling you whether to trust some bytes.
Checking the page, correctly
curl -L https://verify.plainreal.com/ -o verify.html
shasum -a 256 verify.html
f3dd80526c0c31b08b50a94b91156af1c2002f349b4270c1e727f5dc8188b690
wget was never affected; it follows the redirect on its own.
Install
go install github.com/plainreal/verify/cmd/plainreal-verify@v1.1.1
Check a download 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:
git tag -v v1.1.1
shasum -a 256 -c SHA256SUMS
What else changed
Nothing about verification. The page is byte-identical to v1.1.0 apart from the
version string it displays. SECURITY.md carries the same warning, since a
researcher who hits the empty digest is precisely the person who would spend an
afternoon writing the report. A release check now fails on any documented curl
against this site that omits -L, so the class cannot return.
v1.1.0: a command-line verifier, and a page that takes your own key
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.