4
0
Fork 0

Added eth_sign method

travis-fix
hswick 6 years ago
parent 8c688a3e05
commit d53482def9
  1. 6
      lib/exw3.ex

@ -280,6 +280,12 @@ defmodule ExW3 do
call_client(:request, ["personal_ecRecover", [data0, data1], opts]) call_client(:request, ["personal_ecRecover", [data0, data1], opts])
end 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() @spec encode_event(binary()) :: binary()
@doc "Encodes event based on signature" @doc "Encodes event based on signature"
def encode_event(signature) do def encode_event(signature) do

Loading…
Cancel
Save