Stellar.KeyPair.Spec behaviour (Elixir Stellar SDK v0.5.0) View Source
Defines contracts to generate, validate and encode/decode Stellar KeyPairs.
This behaviour
allows you to use any crypto package of your choice.
The default is Ed25519.
Link to this section Summary
Link to this section Types
Link to this section Callbacks
Specs
from_raw_muxed_account(binary()) :: public_key()
Specs
from_raw_public_key(binary()) :: public_key()
Specs
from_secret_seed(secret_seed()) :: {public_key(), secret_seed()}
Specs
random() :: {public_key(), secret_seed()}
Specs
raw_muxed_account(public_key()) :: binary()
Specs
raw_public_key(public_key()) :: binary()
Specs
raw_secret_seed(public_key()) :: binary()
Specs
sign(binary(), secret_seed()) :: binary() | error()
Specs
validate_muxed_account(public_key()) :: validation()
Specs
validate_public_key(public_key()) :: validation()
Specs
validate_secret_seed(public_key()) :: validation()