View Source BitcoinLib.Key.HD.DerivationPath.Parser.CoinType (BitcoinLib v0.2.0-pre1)

Link to this section Summary

Functions

Converts an integer into an atom representing the bitcoin chain

Link to this section Functions

@spec parse(integer()) :: :bitcoin | :bitcoin_testnet | :invalid

Converts an integer into an atom representing the bitcoin chain

examples

Examples

iex> BitcoinLib.Key.HD.DerivationPath.Parser.CoinType.parse(0) :bitcoin