Yes, finding bugs in Bitcoin would be valuable. However this doesn't seem to be one. What's shown here is a series of supposed "signatures". However, a cryptographic signature is only meaningful in the context of the message it signs. To verify a signature, you need three inputs: 1) the message, 2) the signature, 3) the public key. Generating a &...


When encrypting a wallet, the wallet will generate new keys. If you transfer to those keys, the old, unencrypted backup will not be able to spend the funds. Only the encrypted wallet will have the private keys. Thus, after encrypting, you should take a new backup.


Usually you'd just pass around the EVP_PKEY structure to other OpenSSL calls. To put the secret into memory, you can use char* secret_key; BIO* bio_priv = BIO_new(BIO_s_mem()); PEM_write_bio_PrivateKey(bio_priv, pkey, NULL, NULL, 0, NULL, NULL); BIO_get_mem_data(bio_priv, &secret_key); ... BIO_free(bio_priv); This will set secret_key to point at the ...

Only top voted, non community-wiki answers of a minimum length are eligible