Cryptopunk.Derivation.Path (cryptopunk v0.6.6)

Utility functions to work with deriviation path

See https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki

Link to this section Summary

Link to this section Types

@type raw_path() :: {atom(), [non_neg_integer()]}
@type t() :: %Cryptopunk.Derivation.Path{
  account: non_neg_integer(),
  address_index: non_neg_integer(),
  change: non_neg_integer(),
  coin_type: non_neg_integer(),
  purpose: non_neg_integer(),
  type: :private | :public
}

Link to this section Functions

Link to this macro

is_hardened(x)

(macro)
Link to this macro

is_normal(x)

(macro)
@spec new(Keyword.t()) :: t()
Link to this function

parse(string_path)

@spec parse(String.t()) :: {:error, any()} | {:ok, t()}
Link to this function

to_raw_path(path)

@spec to_raw_path(t()) :: raw_path()
@spec two_power_31() :: non_neg_integer()