Skip to content

Do not use the commented code in ecdsa.py in a production environment -- The problem with random number k #275

@99Kies

Description

@99Kies

image

For developers:

Please do not use Python's Random library as your dependency for generating K. (If a random number is used unsecurely during signature, the key may be leaked.)

For a better solution:

RFC6979 is preferred here https://www.rfc-editor.org/rfc/inline-errata/rfc6979.html

An example of the Bitcoin curve:

https://github.com/99Kies/ecdsa/blob/main/ecdsa.py#L250

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