Questions tagged [signature]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
0answers
11 views

Signature signed by go code but it can't verify on solidity

I used golang to generate a signature, but this signature failed to verify on smart contract. this is my golang code: func main() { pkStr := "...
0
votes
0answers
9 views

json rpc sendTransaction signs internally?

When sending json RPC request to geth node. params: [{ "from": "0xb60e8dd61c5d32be8058bb8eb970870f07233155", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567&...
1
vote
0answers
15 views

web3.eth.personal.ecRecover return wrong address

I'm signing EIP712 message in my front-end app. But when I use web3js.ecrecover to verify address signer it return a wrong address (random). Data to sign (EIP712) : msgParams = { domain: { ...
0
votes
0answers
17 views

How to create multiple signatures without many dialogs (sign)

We use signatures for verifying certain functionalities in our smart contracts. However, we want to bulk create items in these smart contracts. Because the items all require a different signature, we ...
1
vote
0answers
89 views

Removing LP from Uniswap/Pancake using seth and removeLiquidityWithPermit(). How is the correct hash for the permission signing calculated?

I'm trying to figure out how I can remove LPs from Uniswap/Pancakeswap using the function removeLiquidityWithPermit(address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 ...
0
votes
0answers
13 views

Using an ethereum address for centralized service authentication

I am building an app that interacts with a centralized backend. Let's say your typical java spring boot application. However, as this centralized app is sort of in the blockchain space I was wondering ...
0
votes
1answer
19 views

What are “t” and “v” in web3.utils.soliditySha3()?

I am going through some code and I have seen: const message = Web3.utils.soliditySha3( {t: 'address', v: recipient.address}, {t: 'uint256', v: recipient.totalAllocation.toString()} )....
3
votes
1answer
25 views

Signing and verification of messages using Ethereum key pair

What are some libs to sign and verify messages using an Ethereum key pair? I tried Ethersjs but it seems that it only supports signing (not verify). I need to use the lib on a React Native dapp. The ...
0
votes
0answers
21 views

Web3 and Metamask : how to get signed data?

I'm trying to sign data with web3 + metamask and get that signed data to my server. I ask to sign data, metamask prompt pop, I accept but then nothing happens? Html : <button class="button is-...
0
votes
0answers
11 views

Sign smart contract offline

I want to sign my contract offline (I have ABI and Bytecode) and then broadcast it to the network. I found this code that is quite good : https://gist.github.com/cicorias/...
2
votes
1answer
18 views

How does a Proxy contract communicate with the underlying Implementation?

When a user interacts with a proxy contract, they send a transaction signed by themselves to that proxy. My question is, how is that transaction communicated to the underlying implementation contract? ...
0
votes
1answer
21 views

EIP712: ecrecover returns different address from recoverTypedSignature_v4

I am trying to sign typed data via MetaMask "eth_signTypedData_v4". Recovering signer via recoverTypedSignature_v4 returns correct address that I signed my data with. But smart contract ...
1
vote
0answers
20 views

Decoding signature for verification not working

I'm trying to verify a signature, but when I decode it, the function reverts. This is the function I'm using function source(bytes memory signature) public returns (bytes32 r, bytes32 s, uint8 v) { ...
0
votes
1answer
45 views

Verify a signature generated with web3 in solidity

I am trying to verify a signature in solidity, which I generated in my truffle test. I followed this tutorial for implementing the smart contract, but made small adjustions: library Lib { /** ...
0
votes
0answers
7 views

Signed attestations to authorize a transaction in a smart contract

I'm struggling with a solution where we have a smart contract C with aggregate funds of many users and an off-chain system actually knowing the balance of every user. So while all the funds are in C, ...
1
vote
0answers
53 views

How to let the user sign a nonce in frontend and check the authenticity in the backend?

My frontend code: html (using cdn, couldn't make the npm run...): <script src="https://cdn.jsdelivr.net/npm/web3@latest/dist/web3.min.js"></script> javascript: web3.eth.personal....
1
vote
0answers
21 views

Sign a transaction programmatically with a bash command line command

Let's suppose i have my metamask/ledger secret seed phrase. Here is what i want to do: I want to calculate the first account private key I want to sign a message with this private key It is possible ...
1
vote
0answers
28 views

Using TORUS how i can sign a raw transaction? [closed]

I am using TORUS wallet to make transactions over Quorum network. The requirement is to make a private transaction, for which we need to sign a raw transaction. TORUS does not allow to sign a ...
0
votes
0answers
13 views

Signer Address Recovery

I have these 2 functions in my contract with help of which I want to recover the address of the signer: function formSigningData(address NFTAddress, uint NFTId, uint amount, address tokenAddress, uint ...
2
votes
0answers
48 views

Sign an NFT asset with an Ethereum address

Is it available an Ethereum application that allow the owner to let "sign" his NFT asset by other addresses? If not would it be possible to develop it?
0
votes
1answer
26 views

Server knows that a message is coming from owner of a token?

So I am trying to understand ethereum better, am an amateur. So excuse my naivete here. I am trying to think through this scenario to know if its possible, or how it could be implemented. If any of ...
2
votes
0answers
17 views

Using Web3JS to sign tx: default return value of chainID is networkID (which can be different); does this not create a replay issue?

EIP-155 requires that transactions be signed using the ChainID as one of the parameter. Web3JS Sign Transaction document shows that the ChainID will be automatically fetched using web3.eth.net.getId() ...
0
votes
0answers
11 views

Certification of ownership and integrity of digital content : why is a signature required?

I'm currently designing a simple and largely discussed blockchain solution : certifying the ownership and integrity of a document through an immutable storage smart contract. In most of the ...
0
votes
1answer
28 views

Can I create a signature in the contract?

I can use the function ecrecover to verify a signature in the contract, but I want to know how to create a signature in the contract. What should I do?
1
vote
0answers
41 views

Is the ECDSA signature hash, its derived v value and the chainID still a thing?

I was browsing some code at the go-ethereum and I noticed this method to validate the signature: https://github.com/ethereum/go-ethereum/blob/56dec25ae26bf749b93c3ea69538fabea60c5768/crypto/crypto.go#...
0
votes
1answer
47 views

How to generate a signature with web3py like metamask does?

Most ethereum apps request signatures like this How exactly do i recreate this signature in web3 py? Is there any way i can view the data that gets sent thru metamask? I have tried the following code ...
1
vote
1answer
513 views

Experiencing an “invalid signature error” when trying to use the “permit” feature of ERC20 tokens that support EIP712

I'm currently writing a few smart contracts in solidity and interacting with them through web3. The premise being that a token can be deposited into a pool and can then subsequently withdraw at a ...
1
vote
1answer
47 views

What is wrong with this hand-made raw transaction?

Here are two RLP-encodings of two signings of the same transaction --- for Goerli. Notice how the "Signed by" address is different. This must be implying something is wrong with my signing ...
0
votes
1answer
34 views

A silly question about web3.eth.sign

I'm a beginner and I need to sign the data with metamask,Find the document https://learnblockchain.cn/docs/web3js-0.2x/web3.eth.html#sign then In the browser's debug desk ,i try run web3.eth.sign('...
0
votes
1answer
40 views

Keccak256 hash different in solidity and web3js

I am trying to sign a message in NodeJS and verify the signature with smart contract. Here is my code: async function prepareAndSignMessage(to, amount, referenceTransaction){ let contractInstance =...
1
vote
1answer
154 views

Invoke Metamask with a pure JS/HTML set up

I am new to front end Web3 and I am trying to have a simple SIGN button that will invoke metamask to sign a "Message". I can't seem to get it working. I am using pure HTML/JS without any ...
0
votes
0answers
84 views

Verifying ethereum message signatures with java

I am using web3j to verify message signatures but there are some false negative results. For example this signature should be right, but it seems like the address could not be recovered: final ...
0
votes
0answers
18 views

What is the length of an signed transaction ? ( to be sent by method eth_sendRawTransaction )

I have spent days on signing a raw transaction, but all are failed. Now I want to know, what is the length of a raw transaction? and can you give me an real example of a signed transaction? For ...
1
vote
1answer
134 views

Cannot sign data using eth_signTypedData_v3 in coinbase wallet but can in every other dapp wallet?

Signing data worked in trustwallet, metamask, opera wallet. But not in coinbase using walletlink. Using eth_signTypedData_v3 - when sent to coinbase wallet via walletlink the error Cannot read ...
0
votes
1answer
89 views

How to extract signature from web3.eth.sign or web3.personal.sign

In React Typescript (.tsx file), I'm trying to use web3.eth.sign to validate an account. The signature is being generated properly, but I can't seem to get the signature out of the callback function. ...
0
votes
1answer
30 views

How a smart contract retrieves information from signed message in solidity?

A dapp can sign a message with the web3.js: // recipient is the address that should be paid. // amount, in wei, specifies how much ether should be sent. // nonce can be any unique number, used to ...
1
vote
0answers
27 views

Encoding and signing transaction with aleth client [closed]

I am learning aleth client. I want to do two simple steps: encode json to rlp with ./rlp create [...] sign this rlp with ./aleth-key sign <ma_rlp> And I am getting errors in ./aleth-key sign &...
3
votes
1answer
49 views

Do miners undergo a sunken cost of attempting to verify an invalid transaction signature?

In the case of an 'invalid' transaction whereby the state transition of the execution is deemed to conflict in some way and reverts, the transaction itself is actually valid; gas is consumed, tx ...
0
votes
0answers
26 views

How does ecrecover get compiled?

How does ecrecover() in solidity work? Looking at ethervm.io there doesn't seem to be an opcode for ecrecover? To what bytes is a ecrecover() call compiled?
0
votes
0answers
50 views

Does the EVM have an opcode to check private key signatures?

I have plain and simple desire. I want my dapp users to be able to generate some data payload, sign it with their private key, and send it using any external channel (eg JSON between apps) to a ...
1
vote
2answers
159 views

Multi-signature contract with offline signing

Is it possible to create a multi-signature contract that would not require a transaction for every signature (since this is quite expensive for a higher number of transactions)? Is it possible to ...
0
votes
1answer
302 views

ethers.js wrong signature

From the same private key in ethers.js and secp256k1 I get the same eth address. But if I sign a message I get a different (wrong) signature in ethers.js. What is wrong with my code? import { ...
1
vote
1answer
95 views

EcRecover signed message does not match PublicAddress

I am trying to create a C# webservice back end API that handles the code logic found in Step #5 here: https://www.toptal.com/ethereum/one-click-login-flows-a-metamask-tutorial Their code looks like ...
0
votes
1answer
21 views

Do smart contract transactions get signed?

When you send a transaction to a smart contract by using the contract.methods.methodName().send() is it signed by the sender? If not how can I link the sender to that transaction call
1
vote
1answer
291 views

Recovered address not matching signer address (using ethers)

Below is a simple signature verification flow I wrote, along with a test case with Buidler (all mainly to learn how to verify signatures in a Solidity smart contract). The problem is that the address ...
3
votes
2answers
82 views

Create signed message without JSON RPC node in PHP

I am trying to recreate effect of web3's eth.accounts.sign in PHP and I struggle to find good resources how to do it properly. I have seen this (found it thanks to this thread) and based on what I ...
3
votes
0answers
32 views

Why does clef not implement ethereum's JSON-RPC

Assuming that the RPC standard still matches what is to be found today on the ethereum wiki, I was rather surprised to learn that the method calls provided by clef do not match the signer methods in ...
0
votes
2answers
146 views

Offline creation of signed contract transactions with web3js v1.2.11

I'm attempting to sign a contract transaction offline using web3js v1.2.11. signingAddr = //my eth address signingPk = //my private key // docs: The options object for the contract instance. from, ...
0
votes
0answers
39 views

Signing text with special UTF8 characters browser vs node web3js

I am attempting to get consistent signatures / recovery for text containing special characters. For example, the bitcoin symbol U+20BF, ₿ Junk address and private key: ...
0
votes
1answer
436 views

Signing a request with a signature gives the wrong from address

I am using ethers to get a signed request. I have a signature for the address 0x518171C334AD3adc1cF990A884D67963201B675F. It is, ...

1
2 3 4 5
7