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

The 0.2 candidate (DRAFT)

REFERENCE Source reference/rust/README.md

FieldValue
StatusReference code following the 0.2 integration series (DRAFT); accepts no proposal; no conformance claim
Versionsobsp-core 0.0.2, obsp-gateway 0.0.1
SourceRust reference workspace

The 0.2 integration series (oips/integration/0.2) applies the drafts OIP-0008, -0006, -0007, -0001, -0009, -0002, -0003 and -0005 to the live tree. This workspace follows it as reference code only: no proposal is accepted, the live obsp/0.1 behaviour stays the default everywhere, and nothing here is a conformance claim.

  • Schemas. obsp-core/tests/data/integration-0.2/ holds the 46 schemas of the series and, under drafts/, the seven schemas OIP-0013, OIP-0018 and OIP-0020 add (drafts outside the series, as the web verifier’s 0.2 mode loads them), copied by node tools/copy-0.2.mjs (it applies the patches in a temporary folder with the SDK’s tools/draft-sources.mjs; --check reports stale copies and obsp-core/tests/integration_0_2.rs runs it, skipped without Node.js 20). obsp_core::integration loads them. The proof examples and plan vectors the tests use are the SDK’s own copies (reference/typescript/obsp-sdk/test/fixtures/integration-0.2/), kept current by its test.
  • SIG-2 payload rule. PayloadRule::Oip0008 (default: the payload leaves out signature) or PayloadRule::Integration02 (also transparencyReceipt, OIP-0002’s proposal adopted by the series; its open question 2 stays open), in VerifyOptions::payload_rule and signature::sign_with. Register::with_0_2_classes gives the series’ object classes (the SDK’s OBJECT_CLASSES_0_2). The series’ eo-custody receipt verifies under the 0.2 rule and fails OBS-SIG-0004 under the draft’s.
  • Verifier. obsp-verify --profile 0.2 validates against the 0.2 schemas (source series or the draft id), verifies envelopes under the series’ rule and classes, and runs the same 23 draft checks as DRAFT_CHECKS of the SDK (obsp_verify::drafts: OIP-0002 proofs, OIP-0003 plans, OIP-0006 origin and subject class, OIP-0013 trajectories, OIP-0018 trigger recomputation with correctly rounded sums and half-even rounding, OIP-0020 chunk digests), with the same ids, requirement ids and verdicts. tests/crosscheck.rs runs both verifiers on every example set of the verifier page, each in its mode, and requires the same verdict, counts, schema, schema source, check results, draft rows (id, verdict, draft, requirements, number of findings) and reference edges; tests/drafts.rs checks the 13 plan vectors of the series (set checks and node codes) and the ten OIP-0018 evaluator vectors in both input orders. Run over the series’ own OBSP-GRID examples, the 0.2 profile finds one FAIL: observation-record.model-derived.example.json names uni:model:0001 with a placeholder digest (sha256:6666...) that is not the digest of model-manifest.example.json (a point for the OIP-0006 author).
  • Gateway (--features obsp-0.2, then --obsp-0.2 at run time; see the v02 module): the intake takes observation records 4.0.0 (series schema without the planned signature member, the member against the series’ envelope schema, the envelope under the 0.2 rule, OBS-3 and OBS-4 failures refused); under /node-ingest/v0.2, POST /proof-challenges (nonce of 144 bits from /dev/urandom, window of at most 86400 s, signed by the verifier key), POST /proof-receipts (signature OBS-PRV-0009, binding -0003, freshness by respondedAt and by the gateway’s clock at arrival -0001, replay or unknown nonce -0002, evidence digests -0004/-0005, independent location sources: one is INCONCLUSIVE -0006, trusted time -0007, custody chain -0008, transparency receipt -0010), answered with a signed verification report; POST /plans with the node-side decision of OIP-0003 on the gateway’s trusted state per deployment (OBS-PLAN-0001 to -0007, nothing changed on a refusal); GET /verifier-key, /proof-challenges/{uni}, /verification-reports/{uni}, /plans. State is in memory; the verifier key is a test key from a public label unless --verifier-key names a seed file. obsp-gateway/tests/v02.rs covers each route (the plan test replays every node vector of the series).
  • Node (--features obsp-0.2, "recordVersion": "4.0.0"): records carry origin and subjectClass from the configuration (with modelRef, networkFunctionUni, subjectPolicyRef when given) and validate against the series’ schema; obsp_node::proofs requests a challenge and answers it with a signed receipt and its evidence. end_to_end_0_2_records_and_proof_challenges sends 4.0.0 records to a 0.2 gateway (all accepted), proves location with two sources (PASS) and one (INCONCLUSIVE) and time on the node’s own time-quality record (PASS), and runs obsp-verify --profile 0.2 over what both sides produced (PASS).