Web3x.Wallet (web3x v0.6.3) View Source

Link to this section 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

Link to this section Functions

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

Get Public Ethereum Address from Public Key

Link to this function

get_nonce(bytes_num \\ 16)

View Source
Link to this function

strip_hex_prefix(signature)

View Source

Strip 0x prefix from a binary

Link to this function

verify_message?(public_address, message, signature)

View Source

Specs

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)

View Source

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