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

feat(ux): out-of-place syntactic sugar #413

Merged
merged 1 commit into from
Jun 29, 2024
Merged

Conversation

mratsim
Copy link
Owner

@mratsim mratsim commented Jun 29, 2024

This adds out of place syntactic sugar for finite fields (FF), extension fields and elliptic curves (EC):

  • + for addition
  • ~+ for variable time addition (EC only)
  • - and ~-
  • * for multiplication (FF) and scalar multiplication (EC)
  • ~* for variable time scalar multiplication (EC)

Due to performance issues (useless large copies and extra stack alloc instead of in-place construction) #145, they should be avoided for internal protocols.
However they are convenient for rapid prototyping, debugging and testing as they skip variable and type declaration.

@mratsim mratsim merged commit f0d5d2f into master Jun 29, 2024
24 checks passed
@mratsim mratsim deleted the out-of-place-sugar branch June 29, 2024 22:48
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