mratsim / constantine

Constantine: modular, high-performance, zero-dependency cryptography stack for verifiable computation, proof systems and blockchain protocols.
Other
413 stars 44 forks source link

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

Closed mratsim closed 5 months ago

mratsim commented 5 months ago

This adds out of place syntactic sugar for finite fields (FF), extension fields and elliptic curves (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.