lambdaworks icon indicating copy to clipboard operation
lambdaworks copied to clipboard

Create small constants for field elements

Open Oppen opened this issue 2 years ago • 0 comments

Some constants are used often and specially for Montgomery their construction is expensive and can even become a bottleneck for some operations. The implementation may be complicated because most are behind traits, but maybe a method that returns a reference to the constant may allow us to implement it using lazy_static/OnceCell type by type.

Oppen avatar May 22 '23 14:05 Oppen