View Source Walle (Walle v0.4.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
Decrypts an encrypted JSON keystore from JSON string.
Creates a new random encrypted JSON with the provided password.
Returns the public address from the given private key.
Recovers the Ethereum address which was used to sign the given message.
Recovers the address which signed the typed data (EIP-712).
Signs the given message with the provided private key.
Signs typed data (EIP-712) with the provided private key.
Verifies that signature
on message
was produced by address
Functions
Decrypts an encrypted JSON keystore from JSON string.
Decryption supports the Scrypt and PBKDF2 key derivation functions.
Creates a new random encrypted JSON with the provided password.
Returns the public address from the given private key.
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
.
Recovers the address which signed the typed data (EIP-712).
Signs the given message with the provided private key.
Signs typed data (EIP-712) with the provided private key.
Verifies that signature
on message
was produced by address