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) https://github.com/mratsim/constantine/issues/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.
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) https://github.com/mratsim/constantine/issues/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.