diff --git a/lib/exw3.ex b/lib/exw3.ex index 0e5db40..f4b7bcd 100644 --- a/lib/exw3.ex +++ b/lib/exw3.ex @@ -280,6 +280,12 @@ defmodule ExW3 do call_client(:request, ["personal_ecRecover", [data0, data1], opts]) end + @spec eth_sign(binary(), binary(), []) :: {:ok, binary()} + @doc "Calculates an Ethereum specific signature and signs the data provided, using the accounts private key" + def eth_sign(data0, data1, opts \\ []) do + call_client(:request, ["eth_sign", [data0, data1], opts]) + end + @spec encode_event(binary()) :: binary() @doc "Encodes event based on signature" def encode_event(signature) do