Crate tap_eip712_message

Crate tap_eip712_message 

Source
Expand description

§EIP712 signed message

This crate contains the EIP712SignedMessage struct which is used to sign and verify messages using EIP712 standard.

§Example

use tap_eip712_message::Eip712SignedMessage;

let signed_message = Eip712SignedMessage::new(&domain_separator, receipt, &wallet).unwrap();
let signer = signed_message.recover_signer(&domain_separator).unwrap();

assert_eq!(signer, wallet_address);

Structs§

Eip712SignedMessage
EIP712 signed message
MessageId
Unique identifier for a message
SignatureBytes
Signature that can be used in a HashSet

Enums§

Eip712Error
Errors returned by creation of messages and verify signature

Traits§

SignatureBytesExt
Extension for Signature to return SignatureBytes