View Source BitcoinLib.Key.HD.DerivationPath.Parser.Network (BitcoinLib v0.4.7)
Determines which network is being used, either mainnet or testnet.
This is a hardened value.
See: https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki#registered-coin-types
Link to this section Summary
Functions
Converts a list of path levels managed up until the network, extracts the network and returns the remaining levels
Link to this section Functions
Converts a list of path levels managed up until the network, extracts the network and returns the remaining levels
examples
Examples
iex> ["1'", "1", "2", "3"]
...> |> BitcoinLib.Key.HD.DerivationPath.Parser.Network.extract()
{:ok, :testnet, ["1", "2", "3"]}