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

New API for Version 1.0.0 #326

Merged
merged 13 commits into from
Jan 8, 2024
Merged

New API for Version 1.0.0 #326

merged 13 commits into from
Jan 8, 2024

Conversation

jeremyfelder
Copy link
Collaborator

No description provided.

icicle/README.md Outdated Show resolved Hide resolved
@jeremyfelder
Copy link
Collaborator Author

Comments from Vitaliy: #305 (comment)

icicle/README.md Outdated Show resolved Hide resolved
Copy link
Contributor

@vhnatyk vhnatyk left a comment

Choose a reason for hiding this comment

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

the great :)

  • Rust tests are finally running without --test-threads=1 ✌🏻(upd: turns out not 😢 - but maybe it's just WSL issue?)
  • Compilation time in release - you still want to do some coffee in the mean time as before 😄 but it's already finished compiling - truly improved 👍🏻
  • Almost zero copypaste and no out-of-sync code in scripts 💥

the (not so) good :/

  • still not able to do debug build in meaningful time, even for single curve 😕
  • maybe worth adding Cargo.toml to the root of repo - since rust-analyzer doesn't work ok unless opened rust folder in new vscode window

the (not that) ugly 😳

  • a bunch of .. as *const _ as *const ... - I recall these were cause of mindblowing bugs in the initial release, some easily replacable with as_ptr(), some not - well, maybe it's just me 😏

wrappers/rust/icicle-curves/icicle-bw6-761/build.rs Outdated Show resolved Hide resolved
wrappers/rust/icicle-curves/icicle-bls12-381/build.rs Outdated Show resolved Hide resolved
wrappers/rust/icicle-curves/icicle-bls12-381/Cargo.toml Outdated Show resolved Hide resolved
wrappers/rust/icicle-curves/icicle-bls12-377/Cargo.toml Outdated Show resolved Hide resolved
wrappers/rust/icicle-curves/icicle-bls12-377/build.rs Outdated Show resolved Hide resolved
wrappers/rust/icicle-core/src/msm/tests.rs Show resolved Hide resolved
wrappers/rust/icicle-core/src/msm/tests.rs Show resolved Hide resolved
wrappers/rust/icicle-core/src/ntt/mod.rs Outdated Show resolved Hide resolved
wrappers/rust/icicle-core/src/ntt/tests.rs Outdated Show resolved Hide resolved
wrappers/rust/icicle-core/src/ntt/tests.rs Outdated Show resolved Hide resolved
@vhnatyk vhnatyk mentioned this pull request Jan 5, 2024
ChickenLover and others added 11 commits January 8, 2024 17:19
Add curves to Rust, use generics for NTT, MSM and tests
* NTT and MSM bugs fixed and functionality extended

* More Rust tests, refactored Rust wrappers

* Reworked MSM and NTT public functions on the Rust side

---------

Co-authored-by: ImmanuelSegol <3ditds@gmail.com>
Co-authored-by: Jeremy Felder <jeremy.felder1@gmail.com>
Co-authored-by: BigSky77 <simonjudd2@gmail.com>
Co-authored-by: yanziseeker <153156292+AdventureSeeker987@users.noreply.github.com>
Co-authored-by: BigSky <77446076+bigsky77@users.noreply.github.com>
---------

Co-authored-by: Jeremy Felder <jeremy.felder1@gmail.com>
…t allowing rust build script to find it when crate is used as a dependency
* Safer smart pointer that covers host and device

* Fixed MSM test

* Scalars and points in MSM are non-mutable in all cases

* change mont API (#332)

* Some Rust doc comments

---------

Co-authored-by: ChickenLover <Romangg81@gmail.com>
@DmytroTym DmytroTym merged commit 91471fb into main Jan 8, 2024
11 of 12 checks passed
@DmytroTym DmytroTym deleted the dev branch January 8, 2024 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants