Current section

Files

Jump to
stellar_base lib key_pair.ex
Raw

lib/key_pair.ex

defmodule Stellar.KeyPair do
@moduledoc false
@behaviour Stellar.KeyPair.Spec
@impl true
def random, do: current_impl().random()
@impl true
def from_secret(secret), do: current_impl().from_secret(secret)
defp current_impl do
Application.get_env(:stellar_base, :keypair_generator, Stellar.KeyPair.Default)
end
end