Packages
Low-level elixir library to read, write, hash, and sign XDR primitive constructs used in the Stellar network.
Current section
Files
Jump to
Current section
Files
lib/key_pair.ex
defmodule StellarBase.KeyPair do
@moduledoc false
@behaviour StellarBase.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, StellarBase.KeyPair.Default)
end
end