owp_compute_digest
Compute the canonical SHA-256 digest for OpenWorkProof payloads. Generates the hash required for Ed25519 signing and offline verification of work contracts.
Instructions
Compute the canonical SHA-256 digest of an OpenWorkProof payload.
The digest is computed over the RFC 8785 JCS canonicalisation of
{"domain": "openworkproof/<object_type>/v0.1", "payload": <payload>}
(with digest and signature fields stripped from the payload
at the top level).
Args: object_type: One of the allowed canonical domains. payload: JSON string of the payload object.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| payload | Yes | ||
| object_type | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||