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

Refactor pedersen libfuncs to use the BlockExt trait #538

Merged
merged 19 commits into from
May 8, 2024

Conversation

TAdev0
Copy link
Contributor

@TAdev0 TAdev0 commented Apr 23, 2024

Closes #529

Checklist

  • Linked to Github Issue
  • Unit tests added
  • Integration tests added.
  • This change requires new documentation.
  • Documentation has been added/updated.

@TAdev0
Copy link
Contributor Author

TAdev0 commented Apr 23, 2024

Hi @edg-l @igaray .

Here is a first draft for the refactoring of pedersen libfunc
I'm a bit new with Rust, it is probably not perfect :p

src/libfuncs/pedersen.rs Outdated Show resolved Hide resolved
src/libfuncs/pedersen.rs Outdated Show resolved Hide resolved
@igaray igaray added the odhack label Apr 24, 2024
@TAdev0
Copy link
Contributor Author

TAdev0 commented Apr 29, 2024

@azteca1998 comments addressed, tests are passing. Ready for review!

@TAdev0 TAdev0 requested a review from azteca1998 April 29, 2024 11:56
azteca1998
azteca1998 previously approved these changes Apr 29, 2024
@codecov-commenter
Copy link

codecov-commenter commented Apr 29, 2024

Codecov Report

Attention: Patch coverage is 78.94737% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 88.84%. Comparing base (1bbda33) to head (8cb4865).

Files Patch % Lines
src/libfuncs/pedersen.rs 78.94% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #538      +/-   ##
==========================================
- Coverage   88.85%   88.84%   -0.02%     
==========================================
  Files         108      108              
  Lines       34555    34535      -20     
==========================================
- Hits        30705    30681      -24     
- Misses       3850     3854       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@TAdev0
Copy link
Contributor Author

TAdev0 commented Apr 29, 2024

@azteca1998 I had a bunch of useless into() , just removed them, sorry.

@TAdev0 TAdev0 requested a review from azteca1998 April 29, 2024 13:40
@TAdev0
Copy link
Contributor Author

TAdev0 commented May 7, 2024

Ready to be merged @azteca1998 @fmoletta

@edg-l edg-l enabled auto-merge May 7, 2024 09:46
@edg-l edg-l added this pull request to the merge queue May 7, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks May 7, 2024
@juanbono juanbono added this pull request to the merge queue May 8, 2024
Merged via the queue into lambdaclass:main with commit e9bc96a May 8, 2024
9 checks passed
Gerson2102 pushed a commit to Gerson2102/cairo_native that referenced this pull request May 15, 2024
* refactor pedersen

* fix

* temp commit

* address comments

* temp

* remove useless into

---------

Co-authored-by: Edgar <git@edgarluque.com>
Gerson2102 pushed a commit to Gerson2102/cairo_native that referenced this pull request May 15, 2024
* refactor pedersen

* fix

* temp commit

* address comments

* temp

* remove useless into

---------

Co-authored-by: Edgar <git@edgarluque.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor pedersen libfuncs to use the BlockExt trait
7 participants