owp_compute_digest
Compute the canonical SHA-256 digest of an OpenWorkProof payload using RFC 8785 JCS canonicalisation, stripping digest and signature fields for deterministic verification.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"object_type": "<object_type>",
"payload": "<payload>"
},
"name": "owp_compute_digest"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| payload | Yes | ||
| object_type | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||