Difference between revisions of "How to Import Private Keys"

From Sexcoin Wiki
Jump to: navigation, search
(Created page with "<span style="color:red">'''Caution:'''</Span> Be careful while transferring private keys. Wrongful handling can cause the loss of your Sexcoins. Always make a backup of your '...")
 
m (Additional category)
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
<span style="color:red">'''Caution:'''</Span>
 
<span style="color:red">'''Caution:'''</Span>
 
Be careful while transferring private keys. Wrongful handling can cause the loss of your Sexcoins. Always make a backup of your ''wallet.dat'' before importing and exporting private keys.
 
Be careful while transferring private keys. Wrongful handling can cause the loss of your Sexcoins. Always make a backup of your ''wallet.dat'' before importing and exporting private keys.
 +
==Private Key Formats==
  
 +
===WIF - Wallet Import format===
 +
 +
This is what gets generated by the [http://paperwallet.sexcoin.info paper wallet]
 +
 +
51 characters base58, starts with a '7'
 +
 +
7PtPKkk4czHNvWRwPHYNA3PfEEy88LJ5BdxpsiSU8Yj27CcySUy
 +
 +
===WIF Compressed===
 +
 +
This is what gets dumped via <code>dumpprivkey</code> or <code>dumpwallet</code>
 +
 +
52 characters base58, starts with a 'V'
 +
 +
VE1oXn54yqqHmAu53N1SNuZ1jSeiTNAMTx9QJquQkK2Tt8dceygy
 +
 +
[https://en.bitcoin.it/wiki/Wallet_import_format WIF on Bitcoin's Wiki]
 
== Sexcoin-QT ==
 
== Sexcoin-QT ==
 
=== Open the RPC console ===
 
=== Open the RPC console ===
 
Click on ''Help'', open the ''Debug Window'' and switch to the ''Console'' tab.
 
Click on ''Help'', open the ''Debug Window'' and switch to the ''Console'' tab.
 
=== Decrypt BIP38 encrypted keys ===
 
If your private key is not BIP38 (password) encrypted you can skip this step. If your key is BIP38 encrypted (starts with 6P) you need to decrypt it first before importing the key to Litecoin-QT. [https://liteaddress.org/ Sexaddress] is one of the websites that can be used for this. Click on ''Wallet Details'', enter your key and click on ''View Details''. Now you'll need to enter your BIP38 password. You'll find your decrypted private key below the ''Private Key WIF'' QR Code.
 
 
Your keys are not being transferred to the Web Server. To ensure this, you can disconnect your computer from the internet and still use the website as normal.
 
  
 
=== Unlock your wallet ===
 
=== Unlock your wallet ===
Line 18: Line 31:
 
Type into the RPC console:
 
Type into the RPC console:
 
<pre>importprivkey MyPrivateKey Lable</pre>
 
<pre>importprivkey MyPrivateKey Lable</pre>
Change ''MyPrivateKey'' to your private key (starts with 6v or 6u) and for ''Label'' you can enter a name/description/label for the key (optional).
+
Change ''MyPrivateKey'' to your private key (starts with 'V' or a '7' ) and for ''Label'' you can enter a name/description/label for the key (optional).
 
The importing takes a few minutes depending on your CPU power. The import is done when an empty line appears in your ''console''. Now you should be able to see the corresponding address to the imported key in the ''Addresses'' section.
 
The importing takes a few minutes depending on your CPU power. The import is done when an empty line appears in your ''console''. Now you should be able to see the corresponding address to the imported key in the ''Addresses'' section.
  
 
[[Category:Sexcoin]]
 
[[Category:Sexcoin]]
 
[[Category:Technical]]
 
[[Category:Technical]]
 +
 +
[[Category:Paper Wallet]]
 +
[[Category:Vanity Wallet]]

Latest revision as of 09:19, 13 July 2017

Caution: Be careful while transferring private keys. Wrongful handling can cause the loss of your Sexcoins. Always make a backup of your wallet.dat before importing and exporting private keys.

Private Key Formats

WIF - Wallet Import format

This is what gets generated by the paper wallet

51 characters base58, starts with a '7'

7PtPKkk4czHNvWRwPHYNA3PfEEy88LJ5BdxpsiSU8Yj27CcySUy

WIF Compressed

This is what gets dumped via dumpprivkey or dumpwallet

52 characters base58, starts with a 'V'

VE1oXn54yqqHmAu53N1SNuZ1jSeiTNAMTx9QJquQkK2Tt8dceygy

WIF on Bitcoin's Wiki

Sexcoin-QT

Open the RPC console

Click on Help, open the Debug Window and switch to the Console tab.

Unlock your wallet

If your Sexcoin-QT wallet is not encrypted (not recommended) you can skip this step. To unlock your wallet you need to type in the RPC console:
walletpassphrase MyWalletPass 60

Change MyWalletPass to your wallet passphrase and change 60 to the number of seconds that you want the wallet to be unlocked. After that time the wallet will be locked automatically. Make sure to unlock the wallet long enough to do the next and final step.

Import the private key

Type into the RPC console:

importprivkey MyPrivateKey Lable

Change MyPrivateKey to your private key (starts with 'V' or a '7' ) and for Label you can enter a name/description/label for the key (optional). The importing takes a few minutes depending on your CPU power. The import is done when an empty line appears in your console. Now you should be able to see the corresponding address to the imported key in the Addresses section.