View Source BitcoinLib.Key.HD.DerivationPath.PathValues (BitcoinLib v0.4.7)

Single purpose module that's responsible to transform a list of integer into a DerivationPath values structure

Link to this section Summary

Functions

Transform a list of integer into a DerivationPath values structure

Link to this section Types

@type t() :: BitcoinLib.Key.HD.DerivationPath.PathValues

Link to this section Functions

@spec from_list(list()) :: t()

Transform a list of integer into a DerivationPath values structure

examples

Examples

iex> ["m", 0x80000000, 0x80000000, 0x80000005]
...> |> BitcoinLib.Key.HD.DerivationPath.PathValues.from_list
%BitcoinLib.Key.HD.DerivationPath.PathValues{
  type: "m",
  purpose: 0x80000000,
  network: 0x80000000,
  account: 0x80000005
}