Cryptopunk.Derivation.Path (cryptopunk v0.5.1)

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

Specs

raw_path() :: {atom(), [non_neg_integer()]}

Specs

t() :: %Cryptopunk.Derivation.Path{
  account: term(),
  address_index: term(),
  change: term(),
  coin_type: term(),
  purpose: term(),
  type: term()
}

Link to this section Functions

Link to this macro

is_hardened(x)

(macro)
Link to this macro

is_normal(x)

(macro)

Specs

new(Keyword.t()) :: t()
Link to this function

parse(string_path)

Specs

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

to_raw_path(path)

Specs

to_raw_path(t()) :: raw_path()

Specs

two_power_31() :: non_neg_integer()