Repository navigation
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.