Skip to content
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

cleanup for add zk opcodes PR #874

Merged
merged 4 commits into from
Nov 28, 2024

Conversation

Dentosal
Copy link
Member

  • Use MemoryOverflow instead of ArithmeticOverflow for memory ptr overflows
  • Use From<PanicReason> impl of PanicOrBug to simplify code
  • Simplify some memory access patterns

@Dentosal Dentosal requested a review from AurelienFT November 28, 2024 13:23
@Dentosal Dentosal self-assigned this Nov 28, 2024
@Dentosal Dentosal mentioned this pull request Nov 28, 2024
10 tasks
@Dentosal Dentosal added the no changelog Skips the CI changelog check label Nov 28, 2024
Copy link
Contributor

@AurelienFT AurelienFT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the changes but it seems that all the tests are brokens. I don't see where the problem his by looking on the diff

@AurelienFT
Copy link
Contributor

I will check to fix it.

@AurelienFT
Copy link
Contributor

The coordinates reading was inverted for a point.

@AurelienFT AurelienFT merged commit ff0bbf7 into add_zk_opcodes Nov 28, 2024
37 checks passed
@AurelienFT AurelienFT deleted the dento/add_zk_opcodes-cleanup branch November 28, 2024 14:03
github-merge-queue bot pushed a commit that referenced this pull request Nov 29, 2024
* Add boilerplate new opcodes

* Format

* Update changelog

* Add more boilerplate

* Add code for ec add and ec mul

* Update reserved_registers

* Add source code pairing

* use alloc vec

* Add gas costs charge

* Add tests for new zk opcodes

* remove forget dbg

* Add more test case for zk opcodes

* Remove old todo

* Fix clippy in tests

* Change elliptic curve point error variant

* Change gas costs to v5 because v4 is already released

* format

* Update ec pairing to ouput directly in the register and fix the test

* Update comments on opcodes

* Update zk opcode to match the new spec

* Update EPAR prototype

* update gas costs functions

* Update default gas ecop based on benches

* Add tests with instructions

* Change gas epar

* Fomat

* Update fuel-vm/src/interpreter/crypto.rs

Co-authored-by: Hannes Karppila <[email protected]>

* cleanup for add zk opcodes PR (#874)

* Simplify error types

* Use MemoryOverflow instead of ArithmeticOverflow

* Fix inversion letter

---------

Co-authored-by: AurelienFT <[email protected]>

* Add some doc about the usage of operation symbols + and *

* Add memory overflow tests

* fix clippy

---------

Co-authored-by: Hannes Karppila <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no changelog Skips the CI changelog check
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants