std/crypto: use NAF for multi-scalar edwards25519 multiplication

Transforming scalars to non-adjacent form shrinks the number of
precomputations down to 8, while still processing 4 bits at a time.

However, real-world benchmarks show that the transform is only
really useful with large precomputation tables and for batch
signature verification. So, do it for batch verification only.
9c2b014ea8Frank Denis committed on 11/18/2020, 1:07:32 AM· committed by Andrew Kelleyparent0d9c474
1 file changedLine totals unavailable