---
title: "SDK quickstarts | Observatory Protocol"
description: "Quickstarts for the Observatory Protocol reference library: validate documents, compute canonical digests, read the registers and run the conformance suite…"
url: https://nexusobservatory.com/sdk/
publisher: GCRI Canada
updated: 2026-11-20
---

[Observatory Protocol](https://nexusobservatory.com/)SDK quickstarts

# From a clone to a conformance report.

The reference library validates documents against the protocol's schemas, computes canonical digests, reads the registers and runs the conformance suite. Any JSON Schema 2020-12 library in any language can check the same documents.

**Version**: 0.1.0-draft
**Status**: Draft specification
**Specification**: CC BY 4.0
**Code**: Apache-2.0
**Steward**: GCRI Canada
**Source**: obsp-0.1-foundation

Start

[What each profile provides](https://nexusobservatory.com/sdk/implementers/)

## Step by step with the reference library.

The library reads the schemas, registers and suite of the repository it sits in.

1. Get the repository The specification, schemas, fixtures, registers and conformance suite live together. `git clone --branch obsp-0.1-foundation https://github.com/gcri/observatory-protocol cd observatory-protocol`
2. Install the library Python 3, from the repository root. `pip install -e sdk/python`
3. Validate a document Name the schema, or let the library read it from the document. `obsp validate fixtures/positive/time-quality.valid.json obsp validate my-node.json --schema node-manifest`
4. Compute a canonical digest Canonical JSON (RFC 8785), then SHA-256: the digest documents cite one another by. `obsp digest fixtures/positive/plan.valid.json`
5. Run the conformance suite Point it at a folder of your own evidence, one document per file; manual cases are answered in attestations.yaml beside them. `obsp conformance run --profile OBSP-NODE --evidence conformance/examples/OBSP-NODE --out report.json obsp conformance run --profile OBSP-NODE --sovereignty --evidence conformance/examples/OBSP-NODE`

## The same checks, in your own code.

The library as a module, or any JSON Schema 2020-12 validator against the published schemas.

```
from obsp import SchemaSet, digest schemas = SchemaSet.load() errors = schemas.validate(document, "time-quality") # [] when valid print(digest(document)) # sha256:<64 hex>
```

```
// any JSON Schema 2020-12 validator; the schemas are plain files in schemas/json const schema = JSON.parse(await readFile("schemas/json/time-quality.schema.json", "utf8")); const errors = validate(schema, document); // your validator of choice
```

The checker on this site runs the same schemas in your browser.

## One open binding per plane.

What an implementation speaks on the wire.

**Control**: TLS 1.3 with mutual authentication; protobuf messages over gRPC or HTTP/2.
**Data, in the field**: MQTT 5 with Sparkplug B; connectors for LoRaWAN, OPC UA and instrument buses.
**Data, site to upstream**: At-least-once publication with repeat-safe keys over the control channel or NATS JetStream; QUIC MAY be used on lossy links.
**Events**: Event envelopes mapped to CloudEvents 1.0; channels described in AsyncAPI 3.
**Exchange**: OpenAPI 3.1; the OGC API family; SensorThings; STAC; WIS 2.0.
**Evidence**: DSSE-signed in-toto statements; SLSA provenance; SCITT transparency receipts.
**Telemetry**: OpenTelemetry OTLP.

## Where to go next.

- [Explore **Schemas** Every object, field by field.](https://nexusobservatory.com/schemas/)
- [Check **Conformance checker** Validate a document in the browser.](https://nexusobservatory.com/conformance/checker/)
- [Prove **Conformance** Profiles, levels and the evidence each needs.](https://nexusobservatory.com/conformance/)
- [Source **Repository** Specification, schemas, suite and library.](https://nexusobservatory.com/development/text/)

On this page

1. Step by step with the reference library.
2. The same checks, in your own code.
3. One open binding per plane.
4. Where to go next.

- [View the source](https://nexusobservatory.com/development/text/)
- [Report a defect](https://nexusobservatory.com/development/take-part/)
- [Propose a change](https://nexusobservatory.com/development/proposals/)
- [Changes](https://nexusobservatory.com/governance/changes/)
