Tradehub.Wallet.private_key_from_mnemonic

You're seeing just the function private_key_from_mnemonic, go back to Tradehub.Wallet module for more information.
Link to this function

private_key_from_mnemonic(mnemonic)

View Source

Specs

private_key_from_mnemonic(String.t()) ::
  {:ok, bitstring()} | {:error, String.t()}

Look for the private key based on the given mnemonic phrase.

Examples

iex> Tradehub.Wallet.private_key_from_mnemonic("wrist coyote fuel wet evil tag shoot yellow morning history visit mosquito")
{:ok, <<21, 31, 133, 212, 19, 88, 245, 109, 20, 190, 196, 132, 108, 83, 112, 163, 174, 79, 52, 222, 203, 167, 29, 72, 254, 172, 117, 236, 191, 108, 140, 161>>}

iex> Tradehub.Wallet.private_key_from_mnemonic("clumb twenty either puppy thank liquid vital rigid tide tragic flash elevator")
{:error, "Invalid mnemonic"}