Commit 508a3db
committed
VerifyingKey.from_string(): add validate_point= argument
Normally, this defaults to "True", which makes sure that the claimed
verifying key is actually a group element. If you've already validate
this key once (say, before writing it to disk), it is safe to skip this
step, so setting "validate_point=False" will shave a significant amount
of time from the constructor (measured at 26ms per key by @sigmunau).
Closes #19.1 parent 1a9453d commit 508a3db
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
43 | | - | |
| 44 | + | |
| 45 | + | |
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
| |||
0 commit comments