Tradehub.Wallet.address_from_public_key
You're seeing just the function
address_from_public_key
, go back to Tradehub.Wallet module for more information.
Specs
address_from_public_key(public_key(), network()) :: {:ok, address()} | {:error, String.t()}
Look for the wallet address of based on the given public key within a network.
Examples
iex> Tradehub.Wallet.address_from_public_key("02e6193b57b672df29997fe495d78b4fd3eaae9daae0a5e2803129e2c21b504e23", :testnet)
{:ok, "tswth174cz08dmgluavwcz2suztvydlptp4a8f8t5h4t"}
iex> Tradehub.Wallet.address_from_public_key("02e6193b57b672df29997fe495d78b4fd3eaae9daae0a5e2803129e2c21b504e23", :mainnet)
{:ok, "swth174cz08dmgluavwcz2suztvydlptp4a8fru98vw"}