EthWallet.Web3x.Wallet (eth_wallet v0.1.1)

Fetch from:

https://github.com/Metalink-App/web3x/blob/master/lib/web3x/wallet.ex

Summary

Functions

Destructure a signature to r, s, v to be used by Secp256k1 recover

Get Public Ethereum Address from Public Key

Strip 0x prefix from a binary

Verifies if a message was signed by a wallet keypair given a the public address, message, signature

Verifies if a message was signed by a wallet keypair given a the public address, message, signature, and nonce in the message

Functions

Link to this function

destructure_sig(sig)

Destructure a signature to r, s, v to be used by Secp256k1 recover

Link to this function

get_address(public_key)

Get Public Ethereum Address from Public Key

Link to this function

get_nonce(bytes_num \\ 16)

Link to this function

hash_message(message)

Link to this function

strip_hex_prefix(signature)

Strip 0x prefix from a binary

Link to this function

verify_message?(public_address, message, signature)

@spec verify_message?(any(), binary(), binary()) :: boolean()

Verifies if a message was signed by a wallet keypair given a the public address, message, signature

Link to this function

verify_message?(public_address, message, signature, nonce)

Verifies if a message was signed by a wallet keypair given a the public address, message, signature, and nonce in the message

Link to this function

verify_signature(hash, signature)