parley_verify_receipt
Verify a parley_decide transcript against a given SHA-256 and recompute its max-min result from recorded verdicts to flag tampering or an invalid winner.
Instructions
Two independent checks on a transcript from parley_decide. Returns JSON: match, max_min_verified, expected_sha256, recomputed_sha256. match=true means only that this transcript hashes to the sha256 you passed. The hash is unsigned and this server does not store it, so if the transcript and the hash come from the same party, match proves nothing: whoever edits the record can re-hash it. It detects tampering only when the hash was kept by someone other than whoever could edit the transcript. max_min_verified recomputes the decision from the recorded verdicts: true when the announced result is exactly the max-min option over them (or an honest deadlock), false when the announced winner does not follow from the recorded verdicts. Verdicts are unsigned, so whoever can rewrite the record can rewrite them to fit a swapped winner; only a hash kept by another party, or signed verdicts, rules that out. It needs every entry to carry exactly one verdict per owner. Pass expected_owners (the roster you know took part) so a record missing a whole owner also fails; that roster is only as trustworthy as where you got it. A malformed transcript is a tool error, not a mismatch.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sha256 | Yes | The transcript_sha256 you were given, hex. | |
| transcript | Yes | The `transcript` object returned by parley_decide, unmodified. | |
| expected_owners | No | Optional. The owners you know took part; every entry must carry exactly this set for max_min_verified to be true. |