Questions tagged [eip712]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
70 views

How to get v,r,s value for permit() signed token approval for a gnosis-safe as the owner?

I have a gnosis-safe and an ERC-20 contract with permit(owner, spender, value, deadline, v, r, s) method that requires v,r,s of the owner as the argument. I have calculated the required v,r,s value ...
1 vote
2 answers
156 views

Can't recover address from signature (implementing EIP712 with eth_signTypedData_v4 and using OpenZeppelin)

can someone help me to find out what is wrong with my solidity code? (I'm trying to implement usage of the signatures and EIP712) (ECDSA and _hashTypedDataV4 are from OpenZeppelin: https://github.com/...
1 vote
0 answers
31 views

Invalid signature when siging EIP-712 data

I am trying call transferWithAuthorization on the USDC contract (which implements EIP-3009). To do this I need to sign the transaction data and then execute the transaction, however I am getting the ...
0 votes
0 answers
16 views

EIP712 - Unable to verify signature return from js

I am trying to verify a signed message in my smart contract that I generated from javascript. I followed another example but for some reason can't figure out why the verify function keeps returning ...
  • 65
0 votes
1 answer
76 views

How can i verify more params with _hashTypedDataV4 from openzeppelin?

i'm trying to implement a 712 typed signature with openzeppelin: The contract has two functions: struct ProofData { address user; } bytes32 constant TYPE_HASH_EASY = keccak256("ProofData(...
  • 101
0 votes
1 answer
65 views

Need help on how EIP 712 works and where are signatures stored

Trying to understand EIP712 and signatures. Modeling my knowledge on uniswap v2/v3 which is using Permit function in their routers for swapping. So my question is the following, as some wallet is ...
  • 280
0 votes
1 answer
78 views

Can you verify an EIP712 signature using ethers/web3?

Is it possible to verify EIP712 signature using ethersjs or web3js? or the standard will always be to verified it on-chain? Thanks!
  • 131
0 votes
0 answers
79 views

EIP-2612 & EIP-3009: Is there a reason to use one over the other?

I have a contract using USDC where I would like to pay for the end user's gas. I've implemented versions of this using both permit and receiveWithAuthorization and the gas use seems to be about the ...
  • 101
1 vote
0 answers
31 views

Build and Sign a 0x Erc1155 order with python

I would like to use the 0x protocol to post orders through the backend of a protocol that uses 0x. The biggest challenge here for me is to correctly sign an order with python web3 library. order = { &...
0 votes
1 answer
51 views

Signature from array of tokenId's isn't verifying

The domain message is: struct Offer{ address from; address to; uint256 nonce; uint256[] tokenIds; uint256 duration; } bytes32 constant ...
0 votes
0 answers
28 views

When to use Signed Transaction on Ethereum

I'm trying to implement ERC721's transferSign function, what i wanna achieve is to let user sign transaction and later that signature can be used by the platform owner to broadcast that transaction ...
0 votes
1 answer
298 views

Ethers-EIP712 wont work with strings

I tried to use eip-712 signature with my smart contract but I found out that it only work with fixed-size type. Does anyone know how I can use dynamically-Sized types like string, arrays and bytes ...
0 votes
2 answers
143 views

0x API: Invalid Signature

I found out how to sign an approval into Metamask,in conformity with EIP712: const domain = [ { name: "name", type: "string" }, { name: "version", type: "...
  • 1
1 vote
1 answer
531 views

Get Signature for Tuple input for EIP712 [duplicate]

I'm using web3.js to try and sign a tuple and get the signature. I'm utilizing draft-EIP712Upgradeable.sol in order to hash and recover the input in solidity. I originally looked at the following link ...
2 votes
1 answer
76 views

Why isn't EIP3009 getting much use?

I am researching the use of the EIP3009 and am noticing that the proposal, though implemented in, say, USDC's smart contracts, is not actually getting used (the functions have never been called in ...
  • 110
0 votes
0 answers
60 views

Requesting code review for simple EIP712 validation scheme

Hello, I am working on a simple EIP712 whitelist member wallet registration/validation scheme. The nutshell goes (sign typed data -> pass to chain -> extract signing address -> compare to ...
0 votes
0 answers
295 views

web3.currentProvider.sendAsync() or web3.currentProvider.send() not working on React native

I am currently working on a React native project that requires me to implement EIP712 typed hashing and signing. I have implemented the code on React with Metamask, where the both web3.currentProvider....
1 vote
1 answer
256 views

overflow error when passing wei value to EIP712 _signTypedData

const domainSeparator = { chainId: 5 }; const TestInfo = [ { name: 'contractAddress', type: 'address' }, { name: 'fee', type: 'uint256' } ]; const data =...
0 votes
1 answer
171 views

I am prepared permit EIP712, but tx "Reverted", function selector 'Reverted 0x08c379a

I'm trying to send a permit for a transaction, but I get a function call mismatch return if I call through the smartcontract token function. If I call via encodeABI and add the same arguments, I don't ...
1 vote
0 answers
76 views

Signed a lazy minting voucher .How can i list the nft in opensea

This is my voucher code : async function main() { const [admin, minter, relayer] = await ethers.getSigners(); console.log(`Sign authorization:`); const registry = (await attach('...
6 votes
2 answers
1k views

What is DOMAIN_SEPARATOR in EIP712?

Can someone please explain to me (with a practical example) the use of DOMAIN_SEPARATOR in EIP712 and how it ensures different signatures for the same messages by the same user in two different Dapps?
1 vote
1 answer
789 views

singing an array whit eth_signTypedData_v4

Hi im singing an array whit "eth_signTypedData_v4" but when i try to ecrecover my signature i get the incorrect address here is my js code for sing the msg method: 'net_version', ...
  • 11
0 votes
1 answer
257 views

EIP712 checks chainID while EIP155 includes chainID info in the signature?

Many contracts implementing EIP712 include chainID info in the domain separators, while after EIP155, most signatures already contain chainID. Do the such domain separators mainly check that old ...
  • 67
2 votes
1 answer
671 views

encode SignTypedDataV4 using encode_structured_data in python

TL;DR I am trying to use web3.py and eth_account to encode and sign a EIP-712 message with arrays and I am running into an error: KeyError: 'address' So, how can I encode this message? Context: ...
  • 21
1 vote
1 answer
561 views

Integrating KMS with ethers _signTypedData (EIP712)

I am trying to integrate KMS (Amazon) with ethers for signing the typedData and verify the signer in the smart contract. Before : The private key was saved as environment variable. Since it could be a ...
  • 21
0 votes
0 answers
327 views

Metamask + Chrome: eth_signTypedData_v4 does not exists

I made a dapp that is running on Polygon. I have been using eth_signTypedData_v4 for EIP-712 signatures for few weeks. Everything has been running fine on every browser on desktop and mobile until a ...
0 votes
0 answers
43 views

how do use php..realize matemask Sign Typed Data V4 function。。

how do use php..realize matemask Sign Typed Data V4 function。。 metamask test url https://metamask.github.io/test-dapp/ $a ='{"domain":{"chainId":1,"name":"...
1 vote
0 answers
481 views

How do I perform _hashTypedDataV4 on a struct containing an array of structs

I have signed a typed data, and I am trying to recover the address of the signer from my contract using ECDSA.recover(). But each time I try it, I get an address that is different from the address of ...
  • 131
0 votes
0 answers
316 views

web3.currentProvider.send() - eth_signTypedData with Truffle and Ganache

I am calling web3.currentProvider.send(). const params = [permitParams, defaultAccount]; const method = 'eth_signTypedData'; var result = await web3.currentProvider.send({ method, params, ...
  • 351
0 votes
1 answer
87 views

Can I store a "truly private" variable with EIP712?

I've come across EIP712 utilities in open zepplin. I also found a contract using a draft version here. I've modified their contract to something more akin to what I want to do. I was curious about ...
0 votes
1 answer
251 views

Using signature to send NFT

is it possible to use signatures (EIP-712) to execute transactions. For example Person A gives his signature to a Smart Contract, to transfer A's NFT. Now there is person B, which wants to buy the NFT....
  • 29
2 votes
0 answers
246 views

Signing a hash with EIP712

Is it possible to sign just a hash with the EIP712 standard (either within Solidity or Ethers.js)? If so, how? All that I'm finding online is the full EIP712 process of domain, types, values, signing ...
  • 455
5 votes
1 answer
1k views

Sign EIP712 message from python code

My goal is to sign a message according to EIP712 from python code using an imported private key. To construct the message to sign I am using: https://github.com/ConsenSys/py-eip712-structs After ...
  • 7,296