Skip to content

Arvolear/ecdsa-quirks

Repository files navigation

ECDSA Quirks

A simple command line tool to generate the same ECDSA signature for two different messages.

Install

npm install -g ecdsa-quirks

How to use

To generate the signatures, run:

ecdsa-quirks --m1 "<some message>" --m2 "<some other message>" [--eip191]

The tool will log the private key and generated signatures via that private key that are the same for the specified messages.

Caution

If both messages (or their hashes) with the signature are disclosed, anyone can reconstruct the private key. Be extremely cautious.

Disclaimer

The implementation is based on this research paper. Please check it out to understand the math behind.

About

Generate the same ECDSA signature for two different messages

Topics

Resources

License

Stars

Watchers

Forks

Contributors