Current section

Files

Jump to
stellar_base lib key_pair spec.ex
Raw

lib/key_pair/spec.ex

defmodule StellarBase.KeyPair.Spec do
@moduledoc """
Specifies the behaviour for KeyPair generators.
This Library allows you to use any crypto package of your choice. The default is Ed25519.
"""
@callback random :: {String.t(), String.t()}
@callback from_secret(String.t()) :: {String.t(), String.t()}
end