lambdaworks
lambdaworks copied to clipboard
Create small constants for field elements
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.