Skip to content

Instantly share code, notes, and snippets.

@t4sk
Created January 3, 2017 22:22
Show Gist options
  • Save t4sk/68dbde1ef75762753214c0b3823097e8 to your computer and use it in GitHub Desktop.
Save t4sk/68dbde1ef75762753214c0b3823097e8 to your computer and use it in GitHub Desktop.
How to get Public Key of a Bitcoin Address

How to get Public Key of a Bitcoin Address

Generate bitcoin address

> getnewaddress
mkAhnkryoSs3dLWeBhbhJsw5d1LMs3B3Lt

Get public key

> validateaddress mkAhnkryoSs3dLWeBhbhJsw5d1LMs3B3Lt
{
  ...
  "pubkey": "0390f3bf17a487281c3923d9ba69c4021ba05f6c92896ce43ff2c794b96acc424c"
  ...
}
@rage0920
Copy link

how is this even possible..?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment