Title: How can create a new pszMainKey? (alert key) Post by: Many Coins on February 13, 2018, 04:38:17 PM Hello!
How can I create a new pszMainKey on Bitcoin Core 0.8? Code: static const char* pszMainKey = "04fc9702847840aaf195de8442ebecedf5b095cdbb9bc716bda9110971b28a49e0ead8564ff0db22209e0374782c093bb899692d524e9d6a6956e7c5ecbcd68284"; on Ubuntu 16.04 for example Thank you. Title: Re: How can create a new pszMainKey? (alert key) Post by: achow101 on February 13, 2018, 07:09:08 PM Install openssl and run this command:
Code: openssl genpkey -algorithm ec -outform der -pkeyopt ec_paramgen_curve:secp256k1 -text You should get output that looks like this: Code: priv: The hex under pub is what you put for pszMainKey. The hex under priv is the private key. Keep that somewhere safe. When you enter the hex, make sure you remove the colons (:) and the line breaks. Note that the alert system has a number of DoS vulnerabilities and was removed from Bitcoin. Title: Re: How can create a new pszMainKey? (alert key) Post by: Many Coins on February 13, 2018, 07:21:31 PM Install openssl and run this command: Code: openssl genpkey -algorithm ec -outform der -pkeyopt ec_paramgen_curve:secp256k1 -text .... Note that the alert system has a number of DoS vulnerabilities and was removed from Bitcoin. WOW! It's working! Thank you! |