Compute a blind-matching commitment
sealed_commitComputes a blind-matching commitment hash for a job result and generates a secret salt when omitted, enabling publish-before-reveal result verification.
Instructions
Computes a Gaussia blind-matching commitment: keccak256(abi.encode(bytes32 jobId, bytes32 resultHash, address wallet, bytes32 salt)), as defined in SPEC.md with shared test vectors. A node publishes this before seeing the other node's result and reveals the inputs later. If no salt is given, 32 random bytes are generated and returned: keep them secret until the reveal. Offline, nothing is sent or stored.
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": {
"job_id": "<job_id>",
"result_hash": "<result_hash>",
"wallet": "<wallet>"
},
"name": "sealed_commit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| salt | No | Secret salt (omit to generate one): 32 bytes, 0x followed by 64 hex characters. | |
| job_id | Yes | Job ID: 32 bytes, 0x followed by 64 hex characters. | |
| wallet | Yes | Node wallet address (0x + 40 hex). Mixed case must be a valid EIP-55 checksum. | |
| result_hash | Yes | Hash of the node's result: 32 bytes, 0x followed by 64 hex characters. |