View Source DiodeClient.Wallet (Diode Client v1.2.2)
Representation of an Ethereum Wallet. This struct can hold keys in three levels of completeness
- Full key (including private key, public key and address)
- Public Key (including public key and address)
- Address (only the 20 byte Ethereum address)
A wallet can be instantiated from any of those, but accessors for higher level components will fail when the data is not available
Summary
Types
@type address() :: <<_::160>>
@type compressed_public_key() :: <<_::264>>
@type private_key() :: <<_::256>>
@type t() ::
{:wallet, privkey :: nil | <<_::256>>, pubkey :: nil | <<_::264>>,
address :: <<_::160>>}