Forge v0.3.0 Forge.Crypto View Source

Crypto related functions

Link to this section Summary

Link to this section Functions

Link to this function create_private_key() View Source
create_private_key() :: String.t()
Link to this function create_public_key(private_key) View Source
create_public_key(String.t()) :: String.t()
Link to this function create_wallet_address(public_key) View Source
create_wallet_address(String.t()) :: String.t()
Link to this function ecdsa_sign!(data, arg) View Source
ecdsa_sign!(binary(), binary()) :: binary()

Sign data with private key

Link to this function ecdsa_verify(data, signature, public_key) View Source
ecdsa_verify(binary(), binary(), binary()) :: :ok | :error
Link to this function get_tx_hash(data) View Source
get_tx_hash(String.t()) :: String.t()

Generate an Ethereum compatible sha3

Link to this function sha3(data, atom) View Source
sha3(binary(), :upper | :lower) :: binary()