View Source Kadena.Types.KeyPair (Kadena v0.19.0)

KeyPair struct definition.

Link to this section Summary

Link to this section Types

@type arg() :: {arg_type(), arg_value()}
@type arg_type() :: atom()
@type arg_validation() :: {:ok, arg_value()} | {:error, Keyword.t()}
@type arg_value() :: key() | clist()
@type clist() :: [Kadena.Types.Cap.t()] | nil
@type key() :: String.t()
@type t() :: %Kadena.Types.KeyPair{clist: clist(), pub_key: key(), secret_key: key()}
@type validated_keypair() :: t() | {:error, Keyword.t()}

Link to this section Functions

@spec add_caps(keypair :: t(), caps :: clist()) :: validated_keypair()