Skip to content

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

Merged
mratsim merged 1 commit intomasterfrom
out-of-place-sugar
Jun 29, 2024
Merged

feat(ux): out-of-place syntactic sugar#413
mratsim merged 1 commit intomasterfrom
out-of-place-sugar

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
@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

Comments