Skip to main content

Module bundle

Module bundle 

Source
Expand description

Bundles: the canonical contract with every schema artifact it lists (r3 §3.11, the r3.1 container).

{"contract": <canonical contract>,
 "schemas": {"sha256:…": {"kind": "protobuf", "data": "<base64 FileDescriptorSet>"},
             "sha256:…": {"kind": "jsonschema", "data": <JSON Schema document>},
             "sha256:…": {"kind": "packed", "data": <packed document>}},
 "extras": {}}

Integrity is Merkle-style: the fingerprint is computed over the canonical contract, and the contract lists every schema’s id, so verifying each schema against its id verifies the whole bundle. A bundle file is the JCS serialization of that object, so one contract revision always produces the same bytes. extras (views.v1 documents, D18) are carried and hashed, never interpreted.

Structs§

Bundle
A bundle, in memory.

Enums§

BundleError
Why a bundle was refused.