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

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 Functions

@spec from_list(list()) :: %BitcoinLib.Key.HD.DerivationPath.PathValues{
  account: term(),
  address_index: term(),
  change: term(),
  coin_type: term(),
  purpose: term(),
  type: term()
}

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,
  coin_type: 0x80000000,
  account: 0x80000005
}