Skip to content

Commit

Permalink
added links to example code for offchain
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsoncusack committed May 5, 2024
1 parent 5532c36 commit abb93b0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/pages/guides/signature-verification.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ We won't go unto all the details here, read the ERC linked above, if you're look
Below we cover the minimum work needed to support on and off chain signature validation for Smart Wallet.

## Offchain
For purely offchain signature verification, simply ensure you are using
a ERC-6492-compliant signature verification library, and it all should *just work*.
We recommend [Viem's `verifyMessage`](https://viem.sh/docs/actions/public/verifyMessage#verifymessage).
For purely offchain signature verification––such as "Sign in With Ethereum"––ensure you are using
a ERC-6492-compliant signature verification library.
We recommend Viem's [`verifyMessage`](https://viem.sh/docs/actions/public/verifyMessage#verifymessage) ([example](https://github.com/wilsoncusack/wagmi-scw/blob/main/src/components/SignMessage.tsx#L28))
and [verifyTypedData](https://viem.sh/docs/actions/public/verifyTypedData) ([example](https://github.com/wilsoncusack/wagmi-scw/blob/main/src/components/TypedSign.tsx#L46)).

## Onchain
For signatures that will be used onchain, such as with [Permit2](https://github.com/Uniswap/permit2)
Expand Down

0 comments on commit abb93b0

Please sign in to comment.