Verify craft commit
verify_craft_commitRecompute the commit hash from choices and salt and compare it to the on-chain choicesHash, without sending a transaction. Also reveals settlement flags, player, boost tier, and reveal window.
Instructions
Verify a crafting commit WITHOUT sending a transaction: reads commits(commitId) from the CraftingController, recomputes keccak256(abi.encode(choices, salt)) the same way the contract does, and reports whether it matches the on-chain choicesHash, plus settlement flags, player, boost tier and the reveal window.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| salt | Yes | 32-byte client secret (0x + 64 hex) used at commit. | |
| choices | Yes | Reveal choices as [slot, parent] pairs, in the exact order hashed at commit. | |
| commitId | Yes | 1-based commit id (see CraftingController.lastCommitId()). |