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

C & Rust elliptic bindings: batchAffine, scalarMul, serial MSM and 32-bit Rust bindings #332

Merged
merged 4 commits into from
Jan 5, 2024

Conversation

mratsim
Copy link
Owner

@mratsim mratsim commented Jan 5, 2024

Missing C and Rust bindings

  • batch affine
  • scalar_mul
  • serial MSM (parallel MSM is aleady there
  • 32-bit Rust bindings

cc @Armantidas @sauliusgrigaitis

#331 will be rebased on top after merge.

@mratsim
Copy link
Owner Author

mratsim commented Jan 5, 2024

Seems like there is a Nim v2 codegen bug with {.noInit.} in templates.
image

The ` should be mangled as X60 but here it is not

image

Trying a simple repro doesn't work so there is probably a generic sandwich class bug involved nim-lang/Nim#11225.

Removing noInit fixes the issue.

@mratsim mratsim merged commit df9034b into master Jan 5, 2024
32 checks passed
@mratsim mratsim deleted the elliptic-bindings branch January 5, 2024 07:57
mratsim added a commit that referenced this pull request Jan 10, 2024
@mratsim mratsim mentioned this pull request Jan 10, 2024
3 tasks
mratsim added a commit that referenced this pull request Jan 11, 2024
* c-api: add scalar mul on G1 and G2 - followup #332

* add conversion/codecs procs between bigints and field elements

* update Rust bindings
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.

1 participant