Skip to content

brainchain-verify 0.11.0: check the second grader's signed receipts - #79

Merged
brainchaindev merged 1 commit into
mainfrom
receipts-1
Nov 22, 2026
Merged

brainchaindev merged 1 commit into
mainfrom
receipts-1

Conversation

@brainchaindev

Copy link
Copy Markdown
Contributor

brainchain-verify now checks the second grader's receipts, not only the record's hashes.

  • gateway: fetches Phala's attestation with a fresh nonce and checks the TDX quote up to Intel's root certificate, that the quote binds the nonce and the published key set, and that the event log matches the quote.
  • second-grader-receipt and judge-receipt: the receipt's signature verifies under the attested key; its id, model and endpoint match the record; the signed request hash equals the record's and rebuilds from the record's question and state; the upstream provider was verified; the receipt predates the decision.

Not checked yet: Jev's answers are unsigned; receipts on decisions before the gateway's 6 November key change skip the signature (the old key is not published); the signed response hash, because records keep the probabilities and not the raw response.

205 tests pass with recorded fixtures and no network. A live sweep of 260 mainnet decisions: 246 ok, 13 skipped, 0 failed.

@brainchaindev
brainchaindev merged commit 607ae07 into main Nov 22, 2026
4 of 5 checks passed
@brainchaindev
brainchaindev deleted the receipts-1 branch November 22, 2026 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants