<ol>
<li><p>If you are asking about the bare minimum thing to store to ensure that you can send and receive funds, then it will be the private key (which you already know). But to make transactions via the core, you only need to store the private key you get from the dumpprivkey api call and the address for receiving funds.</p></li>
<li><p>To receive funds you have to use the address.</p></li>
<li><p>I am unaware of any core API which would give the hex value from the private key you get from dumpprivkey. However, it is a really basic encryption scheme and you can decode it back to hex using any programming language.</p></li>
</ol>

<p><a href="http://www.righto.com/2014/02/bitcoins-hard-way-using-raw-bitcoin.html" rel="nofollow noreferrer">This</a> would be useful for a detailed explanation.</p>

CC BY-SA 4.0
2018-08-29T18:46:05.130Z
does dumpprivkey show the entire key? or some encoded ascii representation?
Sonic Soul
CC BY-SA 4.0
2018-08-31T23:22:17.950Z
it dumps the key in the Wallet Import Format (WIF)
Shabahat M. Ayubi
CC BY-SA 3.0
2016-11-24T14:29:01.297Z
2016-11-25T16:06:26.840Z
2016-11-25T16:06:26.840Z
Shabahat M. Ayubi
<p>I want to create a single bitcoin address to which I can send and receive funds too.  Using the bitcoin-core console, I typed in the following:</p>

<p>Input:
    getnewaddress</p>

<p>Output:
    Address: mhYC9ybAa2aHivEjYzyp7WcMXtpcmJvgV2</p>

<hr>

<p>Input:
    validateaddress mhYC9ybAa2aHivEjYzyp7WcMXtpcmJvgV2</p>

<p>Output:
    Public Key: 02b33243d76c40e310a4214d8459f59d569f19f5804a26f0e1d70cf28d605411b3</p>

<hr>

<p>Input:
    dumpprivkey mhYC9ybAa2aHivEjYzyp7WcMXtpcmJvgV2</p>

<p>Output:
    Private Key: cRYUqjikPgyVsWGfL26Q2i26vAAizgurajhW8mBZf2mRCM9NKf5W</p>

<hr>

<p>Questions:</p>

<ol>
<li>Are those 3 values all I need to save to ensure I can easily send and receive funds?</li>
<li>To receive funds, do I need to use the [Address] or the [Public Key] value?</li>
<li>The [Public Key] seems to be a hex value, and the Private Key seems to be a hash value, is it possible to extract the hex value of the [Private Key] using bitcoin-core console?</li>
</ol>

<hr>

<p>Note:</p>

<ol>
<li>The above values were created on the testnet.</li>
<li>I understand that technically I only need to save the [Private Key] and can generate the [Public Key] from the [Private Key]</li>
<li>I understand that I will have to specify a change address so I don't lose any balance if I do not spend the total amount.</li>
</ol>

<bitcoin-core><private-key><public-key><paper-wallet><change>
Trying to create a bitcoin public/private key using bitcoin-core
user43545
# Trying to create a bitcoin public/private key using bitcoin-core

(Asked by: username_0 on 2016-11-24)

I want to create a single bitcoin address to which I can send and receive funds too. Using the bitcoin-core console, I typed in the following:

Input:
getnewaddress

Output:
Address: mhYC9ybAa2aHivEjYzyp7WcMXtpcmJvgV2

---

Input:
validateaddress mhYC9ybAa2aHivEjYzyp7WcMXtpcmJvgV2

Output:
Public Key: 02b33243d76c40e310a4214d8459f59d569f19f5804a26f0e1d70cf28d605411b3

---

Input:
dumpprivkey mhYC9ybAa2aHivEjYzyp7WcMXtpcmJvgV2

Output:
Private Key: cRYUqjikPgyVsWGfL26Q2i26vAAizgurajhW8mBZf2mRCM9NKf5W

---

Questions:

1. Are those 3 values all I need to save to ensure I can easily send and receive funds?
2. To receive funds, do I need to use the [Address] or the [Public Key] value?
3. The [Public Key] seems to be a hex value, and the Private Key seems to be a hash value, is it possible to extract the hex value of the [Private Key] using bitcoin-core console?

---

Note:

1. The above values were created on the testnet.
2. I understand that technically I only need to save the [Private Key] and can generate the [Public Key] from the [Private Key]
3. I understand that I will have to specify a change address so I don't lose any balance if I do not spend the total amount.

**Tags:** bitcoin-core, private-key, public-key, paper-wallet, change


---

## 1 answers

### Answer by username_1 on 2016-11-24. Score: 1 | Accepted answer

1. If you are asking about the bare minimum thing to store to ensure that you can send and receive funds, then it will be the private key (which you already know). But to make transactions via the core, you only need to store the private key you get from the dumpprivkey api call and the address for receiving funds.
2. To receive funds you have to use the address.
3. I am unaware of any core API which would give the hex value from the private key you get from dumpprivkey. However, it is a really basic encryption scheme and you can decode it back to hex using any programming language.

[This](http://www.righto.com/2014/02/bitcoins-hard-way-using-raw-bitcoin.html) would be useful for a detailed explanation.

> **Comments:**
> **username_2**: does dumpprivkey show the entire key? or some encoded ascii representation?  
> **username_1**: it dumps the key in the Wallet Import Format (WIF)  

---

