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

BEAM Nif integration for Pasta Curves #79

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mariari
Copy link

@mariari mariari commented Aug 23, 2023

I've added Erlang/Elixir NIF integration into pasta curves using rustler. The feature is feature flagged so it has no effect on the codebase when it is not in use.

Tell me if there is anything I should change, or anything more that needs to be done for this to be considered.

The CI will fail as I have not merged #68 into the topic, I can setup an integration branch with these two topics, if you want to see if CI passes or fails.

Here we add rustler as a dependency and create serialization
derivations for the various types found within pasta_curves.

Some extra arguments are given to the new_curve_impl as I could not
figure out how to splice strings in rust's macro system
This makes it so that all the changes included have no effect upon the
code, if the desired changes are wanted, then add:

--features=repr-erlang

when using cargo to successuflly have the feature enabled
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