Closed NicosKaralis closed 7 years ago
maybe you used ruby 2.4.0.
OpenSSL::PKey::EC
in openssl with Ruby 2.4 has bug.
This problem is solved with the pull request https://github.com/lian/bitcoin-ruby/pull/207 .
So, wait for the next version or use ruby2.3 or build this gem.
Thanks, that solved my issue.
Using 'master' until the official release
I'm having some trouble to generate signatures for private keys generated from other sources. I'm using version 0.0.10
go to https://www.bitaddress.org and generate a wallet
go to wallet details and get the hex version of the private key
for this example I'm going to use the following:
5Huhk7PuiUGZj5anDfSZMz1pG4Loo3Ubf1r2zF9LydWVJgW5aJR
0C4C8E302E7A074A8A1C2600CD1AF07505843ADB2C026EA822F46D3B5A98DD1F
12g8srXQboDkA8eGUXDwWvtZeVuwPGULJp
1MSALjAKqntzEFqbtxaPBMvpkip2of1nAV
Go to console and type
to be sure check the details
Also, I don't know if this is a mistake or if is intended
Each sign_message returns a different signature and none of them are checking out correctly
TL;DR: The
Bitcoin Address Compressed
is wrong and thesign_message
method doesn't work