2022 Developer Survey is open! Take survey.

Questions tagged [eip712]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
30 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....
user avatar
0 votes
1 answer
27 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 =...
user avatar
0 votes
1 answer
28 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 ...
user avatar
1 vote
0 answers
23 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('...
user avatar
0 votes
1 answer
106 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?
user avatar
0 votes
0 answers
89 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', ...
user avatar
0 votes
1 answer
45 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 ...
user avatar
  • 37
1 vote
0 answers
133 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: ...
user avatar
  • 11
1 vote
0 answers
250 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 ...
user avatar
  • 21
0 votes
0 answers
120 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 ...
user avatar
0 votes
0 answers
21 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":"...
user avatar
1 vote
0 answers
306 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 ...
user avatar
  • 131
0 votes
0 answers
212 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, ...
user avatar
  • 189
0 votes
0 answers
183 views

How to generate a proper EIP712Domain signature transaction

I'm working a crowding contract in solidity. The contract has been deployed and I also generated a Go ABI. I've managed to generate the transaction hash and sign it using web3.js by hooking into bind....
user avatar
0 votes
0 answers
27 views

Could a free field in a EIP712 typed structure be manipulated for some reason?

I'm using the OpenZeppelin's EIP712 implementation for a project where users can make an offchain signature of a certain structure to give a contract the permission to do something with their token (...
user avatar
0 votes
0 answers
193 views

Truffle - Testing EIP712 using Web3js

I've been studying EIP712 and tried to implement some testing using truffle and Web3js. However, I noticed that web3.eth.accounts.sign() is compliant with EIP191, therefore I cannot retrieve the ...
user avatar
0 votes
1 answer
73 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 ...
user avatar
0 votes
1 answer
138 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....
user avatar
  • 27
0 votes
0 answers
81 views

Understanding EIP712

Im onto a project and Im questioning myself if maybe I can use EIP712 (Signing transactions). But before knowing I first have to understand it, which is not completly the case at the moment. My ...
user avatar
  • 27
2 votes
0 answers
194 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 ...
user avatar
  • 265
4 votes
0 answers
519 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 ...
user avatar
  • 7,176