Author

Topic: Generate public key for mining genesis block (Read 292 times)

copper member
Activity: 13
Merit: 0
in chainparams.cpp, a public key is used to mine genesis block:

Code:
048E794284AD7E4D776919BDA05CDD38447D89B436BDAF5F65EBE9D7AD3A0B084908B88162BB60B1AA5ED6542063A30FC9584A335F656A54CD9F66D6C742B67F55

How to generate similar public key using ecdsa library ?


echo "Generating BitCoin private key"
openssl ec -in $PRIVATE_KEY -outform DER|tail -c +8|head -c 32|xxd -p -c 32 > $BITCOIN_PRIVATE_KEY
jr. member
Activity: 113
Merit: 5
in chainparams.cpp, a public key is used to mine genesis block:

Code:
048E794284AD7E4D776919BDA05CDD38447D89B436BDAF5F65EBE9D7AD3A0B084908B88162BB60B1AA5ED6542063A30FC9584A335F656A54CD9F66D6C742B67F55

How to generate similar public key using ecdsa library ?
Jump to: