Choose what this site may use

This site uses strictly necessary cookies to work and to remember your privacy choices. With your permission it would also load content hosted by other services, such as videos, maps and fonts, which then receive your network address and device data. We do not sell or share your personal information and we run no advertising. Choose Accept all, Reject all or Customise. You can change your mind at any time through Privacy choices at the foot of every page.

  • Always on

    Needed for the site to work and to remember your privacy choices. Always on.

  • Remembers settings you choose, such as the light or dark display, in your browser.

  • Loads videos, maps and other content hosted by other services. Those services receive your address and device data.

Menu Close
In this section: Build
Start
Reference code
Tools
API reference
Public services
Agents
Bindings and crosswalks

Evidence verifier (obsp-verify)

REFERENCE Source reference/rust/README.md

FieldValue
StatusReference code; no conformance claim
Version0.0.1
SourceRust reference workspace
cargo run -p obsp-verify -- --root ../.. [--json report.json|-] [--web-compatible] <evidence dir or file>...

Checks, per document, the same as the web verifier (reference/web/verifier/verify.js): JSON (a file holds a document, an array, or a fixture wrapper), schema (found by _schemaTitle, apiVersion, kind, fit, or the closest required set; draft schemas for enveloped documents and key records), identifier, digests, OIP-0008 signature against the key records in the set, and every reference (uni or id with digest) followed to the loaded document and its digest recomputed (the whole document, or without its signature member). The verdict is FAIL when a check failed, INCONCLUSIVE when a check on the loaded documents could not be completed, PASS otherwise; references outside the set do not by themselves make it INCONCLUSIVE. Exit status: 0 PASS, 1 FAIL or INCONCLUSIVE, 2 usage or input error.

One check differs from the web verifier and is off with --web-compatible: a signed document whose class the draft register marks with a planned signature member (an observation record, an event envelope, …) is validated without the member against its live schema and the member against the draft envelope schema (schemaSource: "draft-overlay"). obsp-verify/tests/crosscheck.rs runs both verifiers on every example set of the verifier page when Node.js 20 or later is installed (skipped, not passed, otherwise) and requires the same verdict, counts, schema, schema source, check results and reference edges. The workspace builds serde_json with preserve_order for this: the web verifier walks members in document order.