Cryptopunk.Key (cryptopunk v0.6.3)

Utility functions to work with keys

Link to this section Summary

Link to this section Types

@type t() :: %Cryptopunk.Key{
  chain_code: binary(),
  depth: non_neg_integer(),
  index: non_neg_integer(),
  key: binary(),
  parent_fingerprint: binary(),
  type: :private | :public
}

Link to this section Functions

Link to this function

deserialize(encoded_key)

@spec deserialize(binary()) :: t()
Link to this function

master_key(seed)

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

new_master_private(opts)

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

new_master_public(opts)

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

new_private(opts)

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

new_public(opts)

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

public_from_private(key)

@spec public_from_private(t()) :: t() | no_return()
Link to this function

serialize(key, version)

@spec serialize(t(), binary()) :: String.t()