<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://en.zaoniao.it/index.php?action=history&amp;feed=atom&amp;title=Wallet_import_format</id>
	<title>Wallet import format - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://en.zaoniao.it/index.php?action=history&amp;feed=atom&amp;title=Wallet_import_format"/>
	<link rel="alternate" type="text/html" href="http://en.zaoniao.it/index.php?title=Wallet_import_format&amp;action=history"/>
	<updated>2026-05-15T08:02:24Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.32.0</generator>
	<entry>
		<id>http://en.zaoniao.it/index.php?title=Wallet_import_format&amp;diff=2594&amp;oldid=prev</id>
		<title>Admin: Created page with &quot;{{#seo: |title=Wallet Import Format (WIF) - zaoniao Wiki |keywords=wallet import format,private key wallet import format,wallet export format,wallet import format wif,wif priv...&quot;</title>
		<link rel="alternate" type="text/html" href="http://en.zaoniao.it/index.php?title=Wallet_import_format&amp;diff=2594&amp;oldid=prev"/>
		<updated>2019-03-27T06:32:09Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{#seo: |title=Wallet Import Format (WIF) - zaoniao Wiki |keywords=wallet import format,private key wallet import format,wallet export format,wallet import format wif,wif priv...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{#seo:&lt;br /&gt;
|title=Wallet Import Format (WIF) - zaoniao Wiki&lt;br /&gt;
|keywords=wallet import format,private key wallet import format,wallet export format,wallet import format wif,wif private key&lt;br /&gt;
|description=Wallet Import Format (WIF, also known as Wallet Export Format) is a way of encoding a private ECDSA key so as to make it easier to copy.&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;amp/&amp;gt;&lt;br /&gt;
[[File:Paper_wallet.png|500px|right|Private Key Wallet Import Format]]&lt;br /&gt;
'''Wallet Import Format''' (WIF, also known as Wallet Export Format) is a way of encoding a private [[ECDSA]] key so as to make it easier to copy.&lt;br /&gt;
&lt;br /&gt;
A testing suite is available for encoding and decoding of WIF at: http://gobittest.appspot.com/PrivateKey&lt;br /&gt;
&lt;br /&gt;
==Private key to WIF==&lt;br /&gt;
{{#ev:youtube|RuvrcFyM2QQ|500|right|Wallet Import Format (WIF) private key}}&lt;br /&gt;
1 - Take a private key&lt;br /&gt;
 0C28FCA386C7A227600B2FE50B7CAE{{taggant private key}}11EC86D3BF1FBE471BE89827E19D72AA1D&lt;br /&gt;
2 - Add a 0x80 byte in front of it for mainnet addresses or 0xef for [[Testnet]] [[address]]es. Also add a 0x01 byte at the end if the private key will correspond to a compressed public key&lt;br /&gt;
 800C28FCA386C7A227600B2FE50B7C{{taggant private key}}AE11EC86D3BF1FBE471BE89827E19D72AA1D&lt;br /&gt;
3 - Perform SHA-256 hash on the extended key&lt;br /&gt;
 8147786C4D15106333BF278D71DADAF1079EF2D2440A4DDE37D747DED5403592&lt;br /&gt;
4 - Perform SHA-256 hash on result of [[SHA-256]] hash&lt;br /&gt;
 507A5B8DFED0FC6FE8801743720CEDEC06AA5C6FCA72B07C49964492FB98A714&lt;br /&gt;
5 - Take the first 4 bytes of the second SHA-256 hash, this is the checksum&amp;lt;ref&amp;gt;[https://bitcointalk.org/index.php?topic=50330.0 Wallet Import Format - Bitcoin Forum BitcoinTalk]&amp;lt;/ref&amp;gt;&lt;br /&gt;
 507A5B8D&lt;br /&gt;
6 - Add the 4 checksum bytes from point 5 at the end of the extended key from point 2&lt;br /&gt;
 800C28FCA386C7A227600B2FE50B7CAE11EC8{{taggant private key}}6D3BF1FBE471BE89827E19D72AA1D507A5B8D&lt;br /&gt;
7 - Convert the result from a byte string into a base58 string using Base58Check encoding. This is the Wallet Import Format&lt;br /&gt;
 5HueCGU8rMjxEXxiPuD5BDk{{taggant private key}}u4MkFqeZyd4dZ1jvhTVqvbTLvyTJ&lt;br /&gt;
&lt;br /&gt;
==WIF to private key==&lt;br /&gt;
1 - Take a Wallet Import Format string&lt;br /&gt;
 5HueCGU8rMjxEXxiPuD5BDk{{taggant private key}}u4MkFqeZyd4dZ1jvhTVqvbTLvyTJ&lt;br /&gt;
2 - Convert it to a byte string using Base58Check encoding&lt;br /&gt;
 800C28FCA386C7A227600B2FE50B7CAE11EC{{taggant private key}}86D3BF1FBE471BE89827E19D72AA1D507A5B8D&lt;br /&gt;
3 - Drop the last 4 checksum bytes from the byte string&lt;br /&gt;
 800C28FCA386C7A227600B2FE50B7CAE11EC86D3BF1FBE471BE89827E19D72AA1D&lt;br /&gt;
4 - Drop the first byte (it should be 0x80). If the [[private key]] corresponded to a compressed public key, also drop the last byte (it should be 0x01). If it corresponded to a compressed public key, the WIF string will have started with K or L instead of 5 (or c instead of 9 on testnet). This is the private key&amp;lt;ref&amp;gt;[https://bitcoin.stackexchange.com/questions/35723/what-roles-of-wifwallet-import-format Address - What roles of WIF(Wallet Import Format)? - Bitcoin Stack Exchange]&amp;lt;/ref&amp;gt;.&lt;br /&gt;
 0C28FCA386C7A227600B2FE50B7CAE1{{taggant private key}}1EC86D3BF1FBE471BE89827E19D72AA1D&lt;br /&gt;
==WIF checksum checking==&lt;br /&gt;
1 - Take the Wallet Import Format string&lt;br /&gt;
 5HueCGU8rMjxEXxiPuD5BD{{taggant private key}}ku4MkFqeZyd4dZ1jvhTVqvbTLvyTJ&lt;br /&gt;
2 - Convert it to a byte string using [[Base58Check encoding]]&lt;br /&gt;
 800C28FCA386C7A227600B2FE50B7CAE11E{{taggant private key}}C86D3BF1FBE471BE89827E19D72AA1D507A5B8D&lt;br /&gt;
3 - Drop the last 4 checksum bytes from the byte string&lt;br /&gt;
 800C28FCA386C7A227600B2FE50B7CAE11EC86D3BF1FBE471BE89827E19D72AA1D&lt;br /&gt;
3 - Perform SHA-256 hash on the shortened string&lt;br /&gt;
 8147786C4D15106333BF278D71DADAF1079EF2D2440A4DDE37D747DED5403592&lt;br /&gt;
4 - Perform SHA-256 hash on result of SHA-256 [[hash]]&lt;br /&gt;
 507A5B8DFED0FC6FE8801743720CEDEC06AA5C6FCA72B07C49964492FB98A714&lt;br /&gt;
5 - Take the first 4 bytes of the second SHA-256 hash, this is the checksum&lt;br /&gt;
 507A5B8D&lt;br /&gt;
6 - Make sure it is the same, as the last 4 bytes from point 2&lt;br /&gt;
 507A5B8D&lt;br /&gt;
7 - If they are, and the byte string from point 2 starts with 0x80 (0xef for testnet addresses), then there is no error.&lt;br /&gt;
&lt;br /&gt;
==External links==&lt;br /&gt;
* [https://en.bitcoin.it/wiki/Wallet_import_format https://en.bitcoin.it/wiki/Wallet_import_format]&lt;br /&gt;
* [https://bitcoin.org/en/glossary/wallet-import-format Wallet Import Format - Bitcoin Glossary - Bitcoin.org]&lt;br /&gt;
* [https://github.com/bitcoinjs/wif GitHub - bitcoinjs/wif: Bitcoin Wallet Import Format JS]&lt;br /&gt;
* [https://bitcointalk.org/index.php?topic=50330.0 Bitcointalk]&lt;br /&gt;
* [https://www.dash.org/forum/threads/how-convert-wif-to-address.34760/ WIF private key Forum]&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Mining]]&lt;br /&gt;
* [[CryptoNight]]&lt;br /&gt;
* [[ASIC]]&lt;br /&gt;
* [[Hardware wallet]]&lt;br /&gt;
* [[Cold storage]]&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Bitcoin Core documentation}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Wallets]]&lt;br /&gt;
[[Category:EWallets]]&lt;br /&gt;
[[Category:Cryptocurrency wallet]]&lt;br /&gt;
[[Category:Anonymity and security]]&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
</feed>