Skip to content

Instantly share code, notes, and snippets.

@Znuff
Znuff / wif.md
Created May 5, 2018 20:42 — forked from t4sk/wif.md
How to convert private key to WIF

How to convert private key to WIF

0. Overview

WIF = base58check encode ([version byte][private key][checksum])

version byte = 80 for mainnet, ef for testnet and regtest

checksum = first 4 bytes of double SHA256 of private key