How to force pre 0.16.1 behavior (no lazy curve precomputation)? #277
Answered
by
tomato42
andrei-datcu
asked this question in
Q&A
|
Is there any way one can opt in for the old behavior where all the curves where computed during import? Usecase: I'm running some signature checks at certain points in time, each time with a different key and even though this theoretically only impacts the first verification, I'd rather do as much as possible at import time to catch nasty bugs such as this one: |
Answered by
tomato42
Nov 21, 2021
Replies: 1 comment
|
Any operation with the curve generator will cause the precomputation to happen, so just take a generator for the curve you'll use and then multiply it by 2 or such, like: from ecdsa import NIST256p
NIST256p.generator * 2iterate over all curves to precompute all |
0 replies
Answer selected by
andrei-datcu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Any operation with the curve generator will cause the precomputation to happen, so just take a generator for the curve you'll use and then multiply it by 2 or such, like:
iterate over all curves to precompute all