Skip to content

How to force pre 0.16.1 behavior (no lazy curve precomputation)? #270

Closed

Description

@andrei-datcu

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:
gmpy2/gmpy2#317

Activity

  1. tomato42 commented on Nov 21, 2021

    @tomato42
    Member

    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 * 2

    iterate over all curves to precompute all

  2. locked and limited conversation to collaborators on Dec 6, 2021
  3. converted this issue into a discussion #277 on Dec 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions