Skip to content

scale() should be thread-safe #176

@tomato42

Description

@tomato42

Given that scale() will be called by __mul__(), and it technically mutates the object, and it's the operation used for signing, it may happen that two scale() will execute at the same time, causing the generated point to be malformed.

wrap scale() in threading.Lock() to prevent that from happening

Metadata

Metadata

Assignees

Labels

bugunintended behaviour in ecdsa code

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions