A simple command line tool to generate the same ECDSA signature for two different messages.
npm install -g ecdsa-quirksTo 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.
The implementation is based on this research paper. Please check it out to understand the math behind.