Questions tagged [signature]

The tag has no usage guidance.

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

When we send transaction to a network we only send the signature of the transaction then how is the miner able to decrypt the message?

When we send transaction to a network as shown below we only send the signature of the transaction then how is the miner able to decrypt the message? If only the signed transaction is sent to the ...
1
vote
1answer
112 views

Can someone sign a transaction and have someone else broadcast it and pay the transaction fees?

Can someone sign a transaction, maybe for sending funds or for smart contract interaction, and have someone else broadcast it and pay the transaction fees? Or is it that the signer of the transaction ...
0
votes
1answer
47 views

0x exchange v3 debugging (execution reverted, more details inside)

I am trying to swap the erc721 token for erc20 using the 0x protocol which I deployed on the testnet. Using the following script to perform the swap: /** * Local, Data & Env imports * Exchange....
0
votes
1answer
19 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....
0
votes
1answer
39 views

Can someone please help me understand the params and sign requirement of this legacy rarible mint function? (ERC-721)

Below is a mint function from a legacy Rarible ERC-721 smart contract: function mint(uint256 tokenId, uint8 v, bytes32 r, bytes32 s, Fee[] memory _fees, string memory tokenURI) public { ...
0
votes
1answer
39 views

How to authenticate with an Ethereum account through personalSign?

I want to authenticate a user using her Ethereum account. There are several demos and tutorials available, for example Amaury's which uses, however, the deprecated web3 API: web3.personal.sign(web3....
0
votes
0answers
31 views

Getting wrong address from ECDSA.recover()

I'm signing typed data using _signTypedData() method of ethers. But when I retrieve the signer's address in Solidity Smart Contract using ECDSA.recover(), it returns the wrong address. Let me know if ...
0
votes
1answer
19 views

How to verify JSON result of smart contract method call on my own backend?

I am developing the dApp (related to ERC-721 based NFT) which works with my own backend. I am going to send the result JSON for a smart contract method call to my own backend. On my backend I want to ...
1
vote
1answer
26 views

What is the form of a transaction once it is broadcasted in ethereum blockchain before being mined?

I understand that once a transaction is settled between two parties the transaction message’s structure is serialized using the Recursive Length Prefix (RLP) encoding scheme. Then it is broadcasted to ...
0
votes
0answers
12 views

Can you sign a transaction in the front end but process it in a server backend?

Can you sign a transaction in the front end using metamask but send the transaction to the blockchain in the backend like nodejs?
1
vote
0answers
32 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 ...
1
vote
0answers
26 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 ...
0
votes
0answers
16 views

sendSignedTransaction vs sendRawTransaction

sendSignedTransaction vs sendRawTransaction: What's the difference? They both require the transaction to be already signed (and therefore hashed). Both work with local keys and not hosted keys. Both ...
0
votes
1answer
33 views

How to decrypt signed message with web3 and public key

I want to verify my user before the server sends him information. So I want the user to sign a message using his private key, then the server decrypt that signature to verify the user is indeed the ...
1
vote
1answer
33 views

{v r s} signature to string

I'm working with rarible API and for one request it's needed to provide a signature as a string. I have a signature object { "v": 28, "r": "...
0
votes
0answers
27 views

Could someone help me understand how this problem was solved?

Block sealing failed err="unauthorized signer" The answers that are given still have me confused and I don't know how to interpret what's being said. Tried to search up some of the terms ...
0
votes
1answer
33 views

How to verify a signed message and that it hasn't been reused/tampered with?

I have seen this question and others but none answers my qustion. How can I sign a message and make sure that the public key I recover is actually belongs to the private key that signed the message? ...
0
votes
0answers
50 views

Why can't we sign a message using a public key and get the private key?

I have just learnt how signing of messages works in ethereum. You take a message, then sign it using a private key to get a signed message. And using the message and the signed message you can get the ...
0
votes
1answer
43 views

Unable to verify signature

I'm trying to get the hang of Web3 and Solidity for an upcoming project. So for now I am just fiddling around with some different things, and I have gotten myself stuck on verifying signatures. I am ...
1
vote
2answers
35 views

How to automate sending Ethereum transactions while using Trezor to pre-sign them

I have a program running on a remote server which occasionally needs to send an Ethereum transaction. That transaction will need to be signed with my private key which I keep on a Trezor wallet on my ...
1
vote
0answers
20 views

eth.sign() never returns also does not call back

(This is using local ganache, metamask set up to localhost which is working otherwise) I am trying to establish how to sign, here is my code: async function sign() { ...
0
votes
1answer
150 views

sign transaction in web3 with metamask

I'm trying to make a signed transaction in browser with web3 injected from metamask and send the transaction to my backend-server and then submit it to blockchain. However, it's hard to find how I can ...
0
votes
0answers
32 views

Providing "v" "r" and "s" values as parameters for a method

So I am trying to use a method directly on etherscan.io (using "Write Contract" on the contract whose method I am trying to use) and it asks me for some parameters. Some of the parameters ...
0
votes
0answers
9 views

Convert btcutils signature to ethereum web3 signature

Using btcutils to generate a signature through a private key & toSign the end result looks like 304402201fce... On the other hand sendRawTransaction parameter looks like 0xd46e8dd67c5d32be8d46 Is ...
4
votes
1answer
129 views

Cannot verifiy a signature produced by Ledger in Solidity using ecrecover

I used a smart contract to verify signatures: function verify(string memory _msg, bytes memory _sig) public pure returns (address) { bytes memory _msgHex = bytes(_msg); bytes32 prefixedHash = ...
1
vote
0answers
17 views

Expiry Date for Signature

I am signing an arbitrary string by const ts = Date.now(); const hash = await web3.utils.sha3(anystring+ts); const sign = await web3.eth.personal.sign(hash, account); and check the address by const ...
0
votes
1answer
28 views

Retrieving the original message from an ETH transaction

When someone is simply sending ETH from one address to another, and assuming that person does not include a custom message in the transaction, then what exactly is the message that is sent on the ...
1
vote
1answer
31 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
20 views

json rpc sendTransaction signs internally?

When sending json RPC request to geth node. params: [{ "from": "0xb60e8dd61c5d32be8058bb8eb970870f07233155", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567&...
1
vote
0answers
47 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
20 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
408 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
35 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
20 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
100 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
45 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
16 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
28 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
127 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
1answer
34 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
217 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
182 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
29 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
42 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
23 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
52 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
28 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
23 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
12 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 ...

1
2 3 4 5
7