Skip to content

feat(zones): log trie shape of reads a prover rejects - #9569

Draft
0xrusowsky wants to merge 2 commits into
mainfrom
rus/zone-prover-rejection-diagnostics
Draft

0xrusowsky wants to merge 2 commits into
mainfrom
rus/zone-prover-rejection-diagnostics

Conversation

@0xrusowsky

Copy link
Copy Markdown
Contributor

Motivation

When a remote prover rejects a batch, the sequencer only reports the prover's message. It says which Tempo read failed but not why that read's proof was rejected, so a proof format the prover can't read looks the same as a witness that is really incomplete.

Solution

On a prover rejection the sequencer logs one Prover rejected batch witness event with the zone node version, the hardfork the prover was routed by (which selects its PCRs), the error code, the Tempo block number and the witness node counts. When the prover names a missing Tempo read, the event also carries the trie shape of that read's path through the witness: the node kinds from the root, the nibble depth where the path ends or diverges, and whether it ends in the account trie or a storage trie. The event logs no address, slot, hashed key or value.

WitnessPathReader::walk takes a visitor so the shape reuses the same walk, and it is computed only after a rejection. The request is shared through an Arc so the witness is still available once it has been sent.

A restricted encrypted tier (read set, zone pre-state) is out of scope pending a data-access policy decision.

This branch has not been deployed

No deployments
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.

1 participant