Post
Topic
Board Development & Technical Discussion
Merits 4 from 2 users
Re: Bitcoind does not like ECDSA (r, s) pair produced by OpenSSL
by
bob123
on 18/10/2018, 11:23:56 UTC
⭐ Merited by DarkStar_ (2) ,bones261 (2)
Did you choose the correct elliptic curve to make the calculations ? Bitcoin is using secp256k1.

To generate a private key using openssl:
Code:
openssl ecparam -genkey -name secp256k1 -rand /dev/urandom -out $PRIVATE_KEY

To generate the public key related to the previously generated private key:
Code:
openssl ec -in $PRIVATE_KEY -pubout -out $PUBLIC_KEY