View Source BitcoinLib.Crypto.Wif (BitcoinLib v0.1.2)

WIF Bitcoin private key format management

Inspired by https://learnmeabitcoin.com/technical/wif

Link to this section Summary

Functions

Converts a raw private key to the WIF format

Link to this section Functions

Link to this function

from_integer(value, bytes_length \\ 32)

View Source
@spec from_integer(integer(), integer()) :: String.t()

Converts a raw private key to the WIF format

examples

Examples

iex> 0x0A8D286B11B98F6CB2585B627FF44D12059560ACD430DCFA1260EF2BD9569373 ...> |> BitcoinLib.Crypto.Wif.from_integer "KwaDo7PNi4XPMaABfSEo9rP6uviDUATAqvyjjWTcKp4fxdkVJWLe"