Skip to content

Instantly share code, notes, and snippets.

@qwerity
qwerity / wif.md
Created November 10, 2021 21:26 — 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
@qwerity
qwerity / gist:b20b7bffa22cee6670c4aaa5db7853f4
Created October 4, 2018 10:21
prepare mac OSx VirtualBox Vm
VBoxManage modifyvm "mac_high_sierra_10_13_6" --cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff
VBoxManage setextradata "mac_high_sierra_10_13_6" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "iMac11,3"
VBoxManage setextradata "mac_high_sierra_10_13_6" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0"
VBoxManage setextradata "mac_high_sierra_10_13_6" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Iloveapple"
VBoxManage setextradata "mac_high_sierra_10_13_6" "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"
VBoxManage setextradata "mac_high_sierra_10_13_6" "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1

Keybase proof

I hereby claim:

  • I am qwerity on github.
  • I am qwerity (https://keybase.io/qwerity) on keybase.
  • I have a public key ASAIvd3vxR2XZhMGLbDo3EwdROF9nn2fphfy6YFjPA5sQwo

To claim this, I am signing this object: