eip-712

Integrate EIP-712 typed data signing and verification into Scaffold-ETH 2 projects.

2.0k|1.4k|Updated Sep 19, 2022
One-click install
npx skills add https://github.com/scaffold-eth/scaffold-eth-2 --skill eip-712-scaffold-eth
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: eip-712
Source: https://github.com/scaffold-eth/scaffold-eth-2/tree/main/.agents/skills/eip-712
Command: npx skills add https://github.com/scaffold-eth/scaffold-eth-2 --skill eip-712-scaffold-eth

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enables secure, human-readable signing of structured data on the Ethereum blockchain, reducing phishing risks and improving user trust by clearly displaying what is being signed.

Core Features & Use Cases

  • EIP-712 Integration: Adds support for signing and verifying typed structured data using the EIP-712 standard.
  • Frontend & Backend Verification: Provides tools for both client-side (wagmi hooks) and server-side (viem utilities) signature verification.
  • Use Case: Implement a decentralized application where users can sign off-chain messages (like voting or approvals) with enhanced security, ensuring they understand the transaction details before signing.

Quick Start

Use the eip-712 skill to add typed data signing capabilities to your Scaffold-ETH 2 project.

Frequently Asked Questions about eip-712

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I sign typed structured data on Ethereum using EIP-712?

To sign typed structured data on Ethereum using EIP-712, this Skill integrates wagmi hooks for client-side signing and viem utilities for backend verification, ensuring domain separation and type integrity in your dApp.

What is EIP-712 typed data signing and why use it?

EIP-712 typed data signing is a standard for signing structured off-chain messages on Ethereum. It reduces phishing risks and improves user trust by clearly displaying human-readable transaction details in the wallet before signing.

How do I verify EIP-712 signatures on the backend with viem?

You verify EIP-712 signatures on the backend with viem by utilizing its built-in utilities for server-side verification. This Skill provides these tools to validate off-chain signatures against the typed data structure and domain separator.

Can I use EIP-712 signing for off-chain voting in Scaffold-ETH 2?

Yes, you can implement off-chain voting in Scaffold-ETH 2 using EIP-712. This Skill integrates the standard to let users securely sign approvals or votes off-chain, which can then be verified on-chain.

Does wagmi support EIP-712 client-side signing?

Yes, wagmi supports EIP-712 client-side signing. This Skill utilizes wagmi hooks to facilitate secure, human-readable signing of typed structured data directly from the frontend of your Ethereum application.