View Source DiodeClient.Wallet (Diode Client v1.0.1)

Might be merged with Id.ex, for now just starting with clear Ethereum triple needed for wallets:

  1. Private Key
  2. Public Key
  3. Address A wallet can be instantiated from any of those, but accessors for higher level ids fail

Link to this section Summary

Link to this section Types

Specs

address() :: <<_::160>>
Link to this type

compressed_public_key()

View Source

Specs

compressed_public_key() :: <<_::264>>

Specs

private_key() :: <<_::256>>

Specs

t() ::
  {:wallet, privkey :: nil | <<_::256>>, pubkey :: nil | <<_::264>>,
   address :: <<_::160>>}

Link to this section Functions

Specs

address(t()) :: {:error, nil} | {:ok, <<_::160>>}

Specs

address!(t()) :: <<_::160>>

Specs

from_address(<<_::160>> | integer()) :: t()

Specs

from_privkey(<<_::256>> | integer()) :: t()

Specs

from_pubkey(<<_::264>>) :: t()

Specs

new() :: t()
Link to this macro

wallet(args \\ [])

View Source (macro)
Link to this macro

wallet(record, args)

View Source (macro)