Repository navigation
feat(zones): log trie shape of reads a prover rejects - #9569
Draft
0xrusowsky wants to merge 2 commits into
Draft
0xrusowsky wants to merge 2 commits into
0xrusowsky wants to merge 2 commits into
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 witnessevent 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::walktakes a visitor so the shape reuses the same walk, and it is computed only after a rejection. The request is shared through anArcso 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.