Questions tagged [signature]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
2answers
27 views

Using ECDSA to verify a signature inside smart contract

Following the technique to verify ethereum signature with ECDSA. Sign it like you mean it: creating and verifying Ethereum signatures Signing and Verifying Messages in Ethereum A Closer Look At ...
0
votes
0answers
22 views

Convert string to byte array and verify signature with go ethereum

I've been following this tutorial to generate a signature and a hash. This step all looks fine. The result are these 2 strings that I return: { "hash": "...
0
votes
1answer
17 views

Recover Y-parity from DER-signature for EIP-1559

I have a software system where signing ETH transactions happens in a black box. I give the information required, and it returns to me a DER-signature (30|totalLen|02|lenR|R|02|lenS|S). Now I'm aware ...
0
votes
0answers
20 views

Signing a tuple (struct) for ECDSA.recover

I'm using web3js, and I'm trying to sign a tuple correctly. Below you can see the solidity code for verification. I'm using draft-EIP712Upgradeable.sol struct NFTVoucher { uint256 tokenId; ...
1
vote
1answer
24 views

Unable to construct hash from address and uint256 for ecrecover and signature verification

I am creating a signature with web3.js form a hashed message that contains two numbers and an address: const tokenIds = [1,2,3]; const state = 1; const messageHash = web3.utils.keccak256(tokenIds....
1
vote
1answer
32 views

Signing messages in Truffle tests

I use Truffle to develop locally and run tests with truffle test (letting it create a temporary local blockchain). In one of my tests I need to sign a message and for that I need the test wallet's ...
1
vote
0answers
12 views

Dapptools Fork Impersonation?

In hardhat, theres a way to 'impersonateSigner' and fake a signature from an address you dont own on a forked mainnet; is there a way to do the same with seth? Naively setting the sender doesnt let me ...
0
votes
1answer
20 views

Signature always 132 characters instead of 65 characters

I am stumped. I am trying to create a signature using ECSDA / keccak256. In Solidity the recover method requires 65 characters. My signatures from my integrating code (.net C#). I don't know what is ...
0
votes
0answers
18 views

How does Sushi deal with limit orders? (Conceptually)

On Sushi.com it is possible to set limit orders. From their documentation: When the user creates a limit order for a purchase or a sale on SushiSwap, the order is sent to an AWS server[...] And in ...
1
vote
0answers
28 views

As in web3.js get the same signature as the signature from the signTypedData_v4 method?

I have a standard typed data object that uses Metamask, according to this scheme(without JSON.stringify): If you sign such an object like this: let sig = web3.eth.accounts.sign(JSON.stringify(order), ...
0
votes
1answer
15 views

whether nonce increases if tx is invalid due to invalid sig

I am wondering that whether nonce increases if tx is invalid due to invalid sig. Based on what I know, the nonce increases even though tx is invalid regarding of the reason of failure. right? If so, ...
0
votes
0answers
11 views

Is it possible to compile into one transaction several semi-transactions with different senders and receivers?

In this transaction, I send from my address to several other a certain amount of rETH Obviously this saves quite a lot on gas. Can this be done so that the sender address doesn't necessarily need to ...
0
votes
1answer
28 views

How to use gnosis relay api to send TX

i am trying to use relayer service. But when i use the safe{address}/transactions api to exec transaction the signatures is required type int. I don't know how to create signature forthis. Pls help me,...
1
vote
0answers
27 views

What is the purpose of signing a message before sending a transaction when I already have to sign the transaction when sending?

I have noticed that when removing liquidity from a few DEX platforms, I will need to sign a message before I can go on with sending the actual transaction to remove my liquidity. They will usually ...
1
vote
1answer
20 views

How to prevent cross-chain signed message replay?

I'm building a system for Ethereum authentication through the browser, which also checks whether the user owns a specific token. For this, I'm sending from the back-end a nonce for the user to sign ...
0
votes
0answers
8 views

signing messages with keys hosted on gethNode

I am trying to sign a message for authentication and I found out that I can only get the r, s, v returns from signing via the web3.eth.accounts.sign method which requires the private key. is there a ...
0
votes
0answers
33 views

Invalid sender, insufficient funds, nonce too low when sending raw signed transaction on Rinkeby via JSON-RPC (Infura)

I am writing a C++ program to interact with Ethereum using JSON-RPC calls to an Infura node. I am trying to send a signed transaction using "eth_sendRawTransaction" on the Rinkeby network as ...
0
votes
0answers
14 views

How to pay gas fees on behalf of users?

I am new to blockchain development. I am trying to pay the gas fees on behalf of the users. I don't want to make users pay gas fees for very simple actions. you know how high eth gas fees can be. I ...
0
votes
0answers
75 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, ...
0
votes
1answer
33 views

Best practice to store private key for containerized apps in the cloud

I am a crypto investor. I am staking a coin but the smart contract requires the user to claim and restake the rewards by transacting a smart contract function every 24 hours. Currently I am doing it ...
1
vote
0answers
32 views

Simple way to sign data with Metamask?

I need a very simple way to sign data with Metamask and Web3. I am very familiar with using eth sign and eth personal sign with Web3, but I want to incorporate Metamask into it. I have read the ...
2
votes
0answers
46 views

Is it possible to use non-deterministic ECDSA signatures schemes for signing Ethereum transactions/messages?

Is it possible to use a non-deterministic/probabilistic (choosing k randomly and not HMAC-derived from msgHash + privKey like RFC 6979 states) ECDSA signature scheme for Ethereum Signatures? If yes, ...
1
vote
0answers
14 views

Is there only one valid r,s,parity for a given transaction signed by one private key?

As I understand it in secp256k1 there are infinitely many secrets which, for the same message to be signed, can lead to a valid signature. So the same private key can sign the exact same message and ...
0
votes
1answer
44 views

Unable to validate one of two signatures that were signed the same way

I have a contract that requires two witnesses to sign. Signatures are both being generated using the same code, but I am only able to validate Witness A. Witness B is never found, always just get the ...
0
votes
1answer
23 views

Is there a way for a user to complete a transaction on behalf of another user?

Suppose we have a smart contract that has one variable: url, and a updateURL function to update that url that only the owner can access. Suppose that, for the purposes of the contract, the url should ...
0
votes
0answers
53 views

Create a signed transaction on the front-end to be propagated by the back-end

I'm trying to allow users to sign a transacation, which is meant to call a smart contract method, on the front-end, so Metamask would prompt the user to sign message/transaction which would be sent to ...
1
vote
1answer
65 views

how to get eth_signTypedDataV4 signature in web3.py

I am currently using web3.py on a backend, I want to generate eth_signTypedDataV4 signature with web3.py, I am using Infura as a provider. which web3 method is available or any other library, when it ...
0
votes
1answer
52 views

How to prove the NFT metadata were written by the issuer?

I would like to ask a question a little bit similar to How exactly can someone prove they were the creator of an NFT? In this scenario, the NFT is already minted. According to the description of the ...
1
vote
0answers
23 views

Signature request message readable and not readable

I noticed when metamask pops up with a signature request, some dapp shows message in gibberish hex format which is unreadable to human and another dapp displays it in nicely formatted sentences which ...
0
votes
1answer
82 views

Sign with web3, verify with Solidity

I have been trying, debugging, and crying, for a few days now. I simply for the life of me cannot figure out how to verify a signature that I've created with web3, in Solidity. I am sure I am just ...
0
votes
1answer
37 views

signature request message unreadable

so reading EIP-712, it says Currently signed messages are an opaque hex string displayed to the user with little context about the items that make up the message. but isn't this wrong? because i see ...
0
votes
0answers
20 views

Signed message valid only for a specific smart contract

Is it possible to create a smart contract A and a signed message for which the signature would be valid only if it's signed by the expected Ethereum account and the signature check happens in that ...
0
votes
0answers
49 views

constructing transactions for Fantom

Below is my attempt at constructing a transaction on Fantom (Keep in mind that Fantom is not EIP-1559 compatible, so the format should be the old one) contract_txn = contract_SPOOKY_ROUTER.functions....
1
vote
1answer
52 views

Why is value of ECDSA v often neither 27 nor 28?

There are a lot of information out there explaining that in the ECDSA signature the value of v is always either 27 or 28. However there are many transactions which, when decoded using several decoders,...
0
votes
0answers
101 views

Verifying Solidity signature returns invalid signature with recover

I am working on a project for which I need to generate a hash on the serverside and verify it using a contract. I'm in the early stage and trying to get it to work with a very simple contract that ...
0
votes
0answers
13 views

Dynamic values in signatures

I followed this tutorial about signatures https://forum.openzeppelin.com/t/sign-it-like-you-mean-it-creating-and-verifying-ethereum-signatures/697 At first, I managed to replicate and test, but ...
2
votes
1answer
71 views

I want to get Public key from transaction

I want to get public key from transaction. For example, TXID : 0x191095343fd26cbb4c58996aa6512d5cdf43281d565072bab8d0d5ea9e3d644e I have tried "Get Raw Transaction Hex" in etherscan and use ...
0
votes
0answers
20 views

Secure automatic signing on server

my company is trading cryptocurrencies. In the past we used central exchanges and stored the API Keys (without withdrawal rights) on our servers. Now we are starting to use decentralized finance (e.g. ...
0
votes
0answers
27 views

How to create memory signature or encoded signature web3py?

How do I create an encoded signature to look something like this in python? 0000000000000000000000000000000000000000000000000000000000000020 ...
1
vote
1answer
25 views

Voting without paying fees

I'm Alex and currently exploring the governance smart contracts. I would like to create an ERC20 token where holders are able to vote/sign multiple propositions made by the owners account. Is there a ...
0
votes
0answers
48 views

How to allow users to select their MetaMask account to Login?

I have this code down below, and whenever somebody presses my HTML button, it gets the first MetaMask account's public address. How am I supposed to allow users to select their account to login like ...
0
votes
0answers
134 views

Workflow to verify a user signature from a backend service

I have a frontend web application that creates a message and asks the user to sign it via, for example, metamask. The user signs the message and now I have a signed message hash. Is there a common/...
0
votes
0answers
91 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 ...
0
votes
0answers
190 views

Formatting of message in MetaMask signature request is "weird"

I'm using MetaMask to sign a nonce in order to do server side authentication. Everything works as expected expect that the message shown in the MetaMask window are cryptic signs instead of the actual ...
2
votes
0answers
177 views

How to verify signature on server backend with web3j?

I am sending an EIP_712 signature from metamask to the java backend (web3j) and I need to verify it on backend java application. In this topics it is discussed the support of EIP-712 in java (web3j): ...
0
votes
0answers
84 views

Understanding serialized signed raw transaction

I try to understand how the raw transaction hex is generated. This website provides an example script: https://besu.hyperledger.org/en/1.2.0/Using-Pantheon/Transactions/Transactions/ My inputs are: ...
0
votes
0answers
19 views

How can I manually calculate a transaction hash of a transaction JSON object

So I have a transaction. I have a transaction that I would like to manually calculate the hash: { "hash": "0xf4584008cc70f2f532765a2f035a2525992a258b2d2afd6b49ad5b2857a6197d", &...
0
votes
1answer
74 views

How do smart contract transfer funds if they do not have private keys?

I am reading a book on ethereum and I saw this: Only externally owned accounts have a corresponding private key. Private keys are used for signing new transactions sent to the network as a means of ...
1
vote
0answers
18 views

How are transactions signed when using web3js with Infura?

So far so good, all the examples I have seen online using infura are only code examples where the blockchain is queried. I have not seen one where transactions is actually sent to the blockchain. ...
1
vote
1answer
445 views

Signing messages using ETH wallet - etherscan says that the Message Signature Hash is too short

I've got a problem with verifying ETH messages using etherscan.io (and the messages are signed using MyEtherWallet). The signed message JSON looks like this: { "address": "...

1
2 3 4 5
8