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
destructure_sig(sig)
Destructure a signature to r, s, v to be used by Secp256k1 recover
get_address(public_key)
Get Public Ethereum Address from Public Key
get_nonce(bytes_num \\ 16)
hash_message(message)
strip_hex_prefix(signature)
Strip 0x prefix from a binary
verify_message?(public_address, message, signature)
Verifies if a message was signed by a wallet keypair given a the public address, message, signature
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