python-ecdsa
python-ecdsa copied to clipboard
Make comparing single runs of speed.py meaningful
As the code isn't using constant-time algorithms, to make comparisons between different scalar multiplication algorithms meaningful, we need to benchmark the exact same operations (same private keys, same messages, and same nonces) over and over.
Use 100 deterministically random keys to even out key-to-key or sig-to-sig (for verification) differences