View Source Walle (Walle v0.2.0)

Walle

NIF for verifying Ethereum wallet signatures

Installation

If available in Hex, the package can be installed by adding walle to your list of dependencies in mix.exs:

def deps do
  [
    {:walle, "~> 0.1.0"}
  ]
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/walle.

Summary

Functions

Recovers the Ethereum address which was used to sign the given message.

Verifies that signature on message was produced by address

Functions

Link to this function

recover(message, signature)

View Source

Recovers the Ethereum address which was used to sign the given message.

Recovery signature data uses ‘Electrum’ notation, this means the v value is expected to be either 27 or 28.

Link to this function

verify(message, signature, address)

View Source

Verifies that signature on message was produced by address