Fetch genesis document
fetch_genesisFetches a forest genesis document as base64-encoded CBOR with decoded chain binding, so it can be saved once and reused as the trusted key for sealing.
Instructions
GET {baseUrl}/api/forest/{logId}/genesis: the forest's genesis document as CBOR, base64-encoded, with the chain binding it carries (univocity contract address, chain id, forest log id) decoded; the bootstrap key stays in the bytes for the verifier's genesis root to read. For capture: obtain it once, keep it, and pass it as bytes from then on. A copy obtained at check time is not the genesis trust root as intended, and its chain binding is likewise the operator's claim today; keep the copy from registration, or cross-check it against a source you trust independently. Provenance: fetched. Supports: sealing, as known-log-key with the key this copy carries.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| logId | Yes | UUID (with dashes), or a 16/32-byte hex log id | |
| baseUrl | No | any SCRAPI base URL; falls back to FORESTRIE_BASE_URL when omitted — never defaulted by the package itself |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| genesis | No | ||
| problem | No | ||
| supports | Yes | ||
| provenance | No | ||
| chainBinding | No |