View Source Kadena.Cryptography.KeyPair.Spec behaviour (Kadena v0.19.1)

Specification for Cryptography.KeyPair contracts.

Link to this section Summary

Link to this section Types

@type keypair() :: Kadena.Types.KeyPair.t()
@type secret_key() :: String.t()

Link to this section Callbacks

Link to this callback

from_secret_key(secret_key)

View Source
@callback from_secret_key(secret_key()) :: {:ok, keypair()}
@callback generate() :: {:ok, keypair()}