4 ms·
Bitcoin has a separate schema for signing textual messages with a special magic prefix ('\x18Bitcoin Signed Message:\n'), which would prevent such an attack. E
by nadaviv 12y ago
Bitcoin has a separate schema for signing textual messages with a special magic prefix ('\x18Bitcoin Signed Message:\n'), which would prevent such an attack.
Edit: here's a JavaScript implementation I wrote that does that, if anyone is interested in details: https://github.com/cryptocoinjs/coinmsg/blob/d2cb985dd9994f1950a7c0112c2720fb06ad1843/lib/signer.js#L23-L42 https://github.com/cryptocoinjs/coinmsg/blob/d2cb985dd9994f1...