-
Notifications
You must be signed in to change notification settings - Fork 268
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: adding structure to Transcript (#2937)
Adding structuring feature to transcript based on the flavor and resolves AztecProtocol/barretenberg#656. The main two functions added are `deserialize_full_transcript()` and `serialize_full_transcript()`, which are defined for each flavored transcript derived class. These classes are defined in the flavor classes, and primarily declare all of the transcript objects as member variables. `deserialize_full_transcript()` will take a full proof generated by the flavored prover, and put all those bytes into the member variables. Then, one can now view and modify the objects by just using the member variables. In order to actually push the modification, one has to call `serialize_full_transcript()` in order to regenerate the proof from the (modified) member variables. The tests in `(flavor)_transcript.test.cpp` illustrate how to use these functions in more depth. I also modified the tests in `stdlib/recursion/honk/verifier/goblin_verifier.test.cpp` and in `stdlib/recursion/honk/verifier/verifier.test.cpp`. Got rid of the ProverTranscript and VerifierTranscript and merging them into the BaseTranscript. This was done to avoid having to create these for every flavor derived class and because they did not provide much on top of the BaseTranscript. Created transcript tests for flavors besides Ultra. Transcript breakdown for all flavors: https://docs.google.com/spreadsheets/d/1TpkkPj9o5ZXr_kWT7WsquXSEZY10C1Lt3BWeCA7Qe9U/edit#gid=0. Some design considerations: https://hackmd.io/o8HbTiujTGa4sLccAHQaxw?both.
- Loading branch information
1 parent
4f5b2e6
commit db67aa1
Showing
38 changed files
with
1,710 additions
and
163 deletions.
There are no files selected for viewing
420 changes: 419 additions & 1 deletion
420
barretenberg/cpp/src/barretenberg/honk/flavor/ecc_vm.hpp
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.