- 
                Notifications
    
You must be signed in to change notification settings  - Fork 115
 
refactor(l2): use hardcoded vk in Aligned mode #3175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
          Lines of code reportTotal lines added:  Detailed view | 
    
…d_use_hardcoded_vk
…d_use_hardcoded_vk
…d_use_hardcoded_vk
        
          
                docs/l2/aligned_mode.md
              
                Outdated
          
        
      | > Save the addresses of the deployed proxy contracts, as you will need them to run the L2 node. | ||
| ### 2. Deposit funds to the `AlignedBatchePaymentService` contract from the proof sender | ||
| ### 3. Deposit funds to the `AlignedBatchePaymentService` contract from the proof sender | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mean AlignedBatcherPaymentService?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed 397e0c7!
| 
               | 
          ||
| if aligned_mode == "true" { | ||
| let vk = vk.vk.hash_bytes(); | ||
| dbg!(&vk); | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be removed or replaced with a print.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed 39425e1!
Co-authored-by: Ivan Litteri <[email protected]>
**Motivation** We are passing the verification key every time we call `verifyBatchAligned()`. **Description** - Initializes `SP1_VERIFICATION_KEY` in the `OnChainProposer` contract with the Aligned vk and reuses it in `verifyBatchAligned()`. - Since `l1_proof_verifier` needs the vk for `aligned_sdk:check_proof_verification()`, it retrieves it from the contract as well. Closes lambdaclass#3030 --------- Co-authored-by: Ivan Litteri <[email protected]>
Motivation
We are passing the verification key every time we call
verifyBatchAligned().Description
SP1_VERIFICATION_KEYin theOnChainProposercontract with the Aligned vk and reuses it inverifyBatchAligned().l1_proof_verifierneeds the vk foraligned_sdk:check_proof_verification(), it retrieves it from the contract as well.Closes #3030