Skip to content

Conversation

@fmoletta
Copy link
Contributor

@fmoletta fmoletta commented Apr 13, 2023

Depends on #983

Checklist

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

Copy link
Contributor

@MegaRedHand MegaRedHand left a comment

Choose a reason for hiding this comment

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

LGTM

@fmoletta fmoletta enabled auto-merge April 20, 2023 18:19
@fmoletta fmoletta added this pull request to the merge queue Apr 20, 2023
Merged via the queue into main with commit a178759 Apr 20, 2023
@fmoletta fmoletta deleted the field-arithmetic-hints branch April 20, 2023 20:12
@pefontana pefontana added the whitelisted-hint Implementation of hint on whitelist directory label Apr 20, 2023
kariy pushed a commit to dojoengine/cairo-rs that referenced this pull request Jun 23, 2023
* Add hint code for UINT348_UNSIGNED_DIV_REM

* Add file for uint348 files

* Add pack & split for uint348

* Move comment

* Implement uint348_unsigned_div_rem hint

* Add integration test

* Add integration test

* Add unit tests

* Add hint on split_128

* Test split_128 hint

* Add add_no_uint384_hint

* Fix hint + add tests

* Add hint code for UINT348_UNSIGNED_DIV_REM_EXPAND

* Msc fixes

* Add integration test

* Reduce Uint384_expand representation to the 3 used limbs

* Add unit test

* Add hint code for UINT384_SQRT

* Add implementation for hint on sqrt

* Integration test

* Add unit tests

* Fix missing directive

* Run cairo-format

* Add changelog entry

* Spelling

* Add hint code + Uint768 type

* Implement hint unsigned_div_rem_uint768_by_uint384

* Update src/hint_processor/builtin_hint_processor/uint384.rs

Co-authored-by: Mario Rugiero <[email protected]>

* Update src/hint_processor/builtin_hint_processor/uint384.rs

Co-authored-by: Mario Rugiero <[email protected]>

* Update src/hint_processor/builtin_hint_processor/uint384.rs

Co-authored-by: Mario Rugiero <[email protected]>

* Make hint code more readable

* Add integration test

* Add test

* Add unit test

* Add changelog entry + fmt

* Fix plural

* cargo fmt

* Add first draft of get_square_root

* Fix test

* Fix syntax

* Fix test

* Add necessary lib fns

* fix fmt

* Fix test value

* Add test program

* Add hint to execute_hint

* Fix wrong hint being tested

* Implement sqrt

* Add test fix file

* Fix _sqrt_mod_tonelli_shanks implementation

* Expand integration test

* Add unit test

* Add proptests

* Fix merge conflict

* Fix merge conflict

* Add changelog entry

* Use no-std compatible rng when std is not enabled

* Clippy

* Add misc tests

* Remove vec use

* Remove merge conflict from changelog

* Use seeded rng instead of from_entropy

* Catch potential zero divison errors

* Catch potential zero divison errors

* Prevent zero divison error in is_quad_residue fn

* Add tests case when no successes

* Add tests case when success_gx

* Add some tests

* Fix test value

* Fix test value

* Add unit test for specific case

* Add specific case unit test

* Catch prime being 0

* Add prime check to sqrt_prime_power + Fix proptest values + unify rng generation across test + use rng prime in sqrt_prime_power proptest

* Use `trailing_zeros` instead of sympy trailing implementation

* Fix proptest format

* Remove unused feature from tml

* Clean test file

* Fix merge conflict

* Fix bug in add_no_uint384_check

* Add benchmark file

* Remove duplicated file

* Fix cairo file

* Fix wasm tests

* Move proptest to dev-dependencies

* Revert "Move proptest to dev-dependencies"

This reverts commit 017e8d0.

* Revert change + use feature directive for proptest import

* fmt

* Update src/hint_processor/builtin_hint_processor/field_arithmetic.rs

Co-authored-by: Tomás <[email protected]>

* Remove unused import

---------

Co-authored-by: Mario Rugiero <[email protected]>
Co-authored-by: Tomás <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

whitelisted-hint Implementation of hint on whitelist directory

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants