Questions tagged [signature]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
75 views

Getting incorrect signer address on verifying the signature with the generated hash of the signed message in solidity

Basically on verifying the signature with the generated hash of the signed message, I'm getting the correct signer on JS, but not on Solidity. JS Code (According to Keir Finlow-Bates' suggestion): ...
SYED ASAD KAZMI's user avatar
1 vote
0 answers
9 views

how can I sign a typedData with @safe-global/protocol-kit?

how can I sign a typedData with @safe-global/protocol-kit api? I have objects like this const data = { domain, types, message }
coco irons's user avatar
0 votes
0 answers
8 views

Eth_sign, blind singing and MM signing

Having some confusion on what is what here. Is there difference in enabling eth_sign in metamask with blind signing on ledger? Many web3 sites today require user to sign message as log in method. I ...
Blissful's user avatar
  • 355
0 votes
0 answers
11 views

Understanding the number of aggregations of BLS signatures

I know there are about 1 million validators in the consensus layer. As far as I understand, BLS signatures from some of these are aggregated in each block. But how does this happen in practice? In the ...
user's user avatar
  • 1
2 votes
1 answer
95 views

Why does a wallet user need to sign a message to login?

We all know how Ethereum signing works for user authentication. MetaMask asks you to sign, you sign it and application's server validates it and, if true, allows you to use services. Assume that in my ...
Neo's user avatar
  • 93
1 vote
1 answer
45 views

Can a validator include transactions with invalid signatures?

On Ethereum and ʙꜱᴄ an invalid signature (for exampler s v==0) has a 0x0 address. It’s only the signature that determine who is the ᴇᴏᴀ being used. Now, the yellow paper tell in which case a ...
user2284570's user avatar
  • 1,008
3 votes
1 answer
54 views

Phishing scam - fake website - Metamask signature - where to see the list of signatures?

I admit my defences were down due to gold checkmark on Twitter. See my video and report to @support: https://twitter.com/marsXRobertson/status/1752663546335224083 I didn't observe any tokens moving ...
Mars Robertson's user avatar
0 votes
0 answers
28 views

How to sign a UserOperation using Java and Web3j in alchemy API

I am using Java and Web3j to create code to execute a UserOperation using Alchemy's API. In order to sign the UserOperation, the following code was created and signed, resulting in the following ...
Ken Yurino's user avatar
0 votes
1 answer
30 views

Cannot verify signature

I have been trying to do it but it always return me false, tried a lot of ways but I don't know. Here is the smart contract function _verify( bytes32 hashedMessage, bytes memory ...
AndRockSYS's user avatar
1 vote
1 answer
52 views

Why the signature is different when using ethers v6 and foundry?

I'm using ethers v6 and foundry to test message signing. Though having the same hashed message and the signer private key, I can't find out why the signature is different. The following is my script. ...
Johnson's user avatar
  • 53
0 votes
1 answer
65 views

How is signing a hash different from signing a message?

I've got an Arduino microcontroller (ATmega328P) where I can use the following code (borrowed from here) snippet to sign an arbitrary message . First, I take the keccak256 hash of the message, and ...
Ryan's user avatar
  • 92
1 vote
1 answer
79 views

backend based signature verification

I'm new in web3 and I'm trying to develop a way to authenticate users in my dapp. I'm used to using the old and safe method with email + password to do that, but recently I realised that I could use ...
whoami's user avatar
  • 13
0 votes
1 answer
34 views

recoverPublicKey() returns undefined

function hashData(){ const data = { sendAmount: sendAmount, recipient: recipient, sender: address } return keccak256(utf8ToBytes(JSON.stringify(data))); } function ...
derkangkino's user avatar
3 votes
0 answers
59 views

BLS signatures and the Splitting Zero attack

In 2021 security researcher Quan Thoi Minh Nguyen published two papers ("0" and "Attacks and weaknesses of BLS aggregate signatures") where he highlighted some security weaknesses ...
BrainGrind's user avatar
2 votes
1 answer
145 views

How to generate a signature in foundry if Private key is a string?

I have been testing some contract that includes EIP712 signatures, with foundry. As per this doc we need to pass the private key which is being accepted as a uint256. (uint8 v, bytes32 r, bytes32 s) = ...
Zartaj Afser's user avatar
  • 3,239
1 vote
1 answer
88 views

Why does Metamsk display the sign data as unicode question marks and other various characters when signing a message with Viem?

I'm trying to sign a message in Viem and recover the signer in Solidity, it works as expected, however, the Metamask pop-up window displays the data to be signed incorrectly. Here is my Viem ts code: ...
Rohan Nero's user avatar
  • 1,522
1 vote
1 answer
172 views

How can I create a message hash in Solidity that matches Viem?

I'm creating a message hash with Viem in typescript and in Solidity, however, I can't seem to get the hash in Solidity to match the one created with Viem. My viem code: const hashedMessage = ...
Rohan Nero's user avatar
  • 1,522
1 vote
1 answer
60 views

Cannot create the same ECDSA signature with Web3.py and ethers.js

I have the following (simplified) contract that uses ECDSA to validate message authenticity: pragma solidity ^0.8.18; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; ...
Sebastian Dine's user avatar
0 votes
1 answer
87 views

How to import an existing private key into AWS KMS?

Is there a way to import into AWS Key Management Service an already existing private key so I can sign transactions with that wallet? I have found some tutorials online (like this one: https://www....
Falcon Stakepool's user avatar
0 votes
1 answer
99 views

How to sign the hash of a message using EIP712?

There are many guides and online services on how to sign a message using eip712. But they all apply to messages. Now, if I already have the hash of my message, how to use MetaMask without other third ...
user2284570's user avatar
  • 1,008
1 vote
0 answers
34 views

Make AA wallet signature permanent

I have a 0xsequence wallet which implements AA, I am signing a EIP712 message using signTypedData and verifying with the SignatureChecker.sol using the function isValidSignatureNow. Everything seems ...
Biel43's user avatar
  • 11
0 votes
1 answer
64 views

Send transaction only with signature

As far as I know, Metamask does not allow to sign transaction without broadcasting it to the network. So I can not generate a transaction on my server and pass it to the frontend that will sign me the ...
airled's user avatar
  • 101
0 votes
0 answers
74 views

Signature verification using ecsign and ecrecover

I am using web3.js library to sign a transaction and then verify it from the smart contract. The Signature generated on FrontEnd and as well as from the smart contract are not same.. This is the ...
hammad ali's user avatar
0 votes
1 answer
59 views

Is nonce necessary to prevent signature replay on smart contracts if the method is idempotent?

I have a smart contract in which only I can submit transactions through onlyOwner modifier. If users want to interact with the contract, I make the users sign the parameters of the method and verify ...
Ahmet Yazıcı's user avatar
0 votes
2 answers
50 views

ECDSA.recover versus ECDSA.tryRecover

Is one of these better than the other? How do you decide which one to use? I see that they take different forms of the signature and hashed message but I'm wondering more about whether one is better ...
user127148's user avatar
0 votes
1 answer
53 views

Signature verification using web3js

I am using web3 library to sign a transaction and then verify it from the smart contract. The signature is not verifying. This is the frontend code const DomainSeparator = ethers.keccak256( ...
Abdul Samad's user avatar
0 votes
1 answer
25 views

How signature verification works?

I have read that to sign a message we need the private key but in the below code snippet hasing is done in the 'getMessageHash' function and 'signing' is done in the 'getEthSignedMessageHash' function....
kumar's user avatar
  • 51
2 votes
0 answers
30 views

Why are my EIP-712 signatures different in Ruby and JavaScript?

I'm trying to sign data using EIP-712 standard and my signatures from Ruby and JavaScript don't match when the data is in bytes. They work fine when the data is a string. I'm using eth.rb in Ruby and ...
Bolo's user avatar
  • 121
0 votes
1 answer
65 views

A special private key that can be used to make a TX to a certain wallet ONLY

I want to be able to archive this: a private key or its substitute (P) of a user wallet is stored on a server there're 100s of user wallets there, hence 100s of (P) too server isn't a safe ...
nicholas.fowler's user avatar
0 votes
1 answer
17 views

what to do with a negative or r>curve.n/2 "r" in ecdsa signature

Hey guys it's your fellow beginner developer here again. Enough with chit chat! Last time I asked you guys about signature and how to generate recoveryID for v of the signature and learnt new stuff. ...
NIMA Shahahmadian's user avatar
2 votes
1 answer
44 views

Why are the params from the request object in reverse order between personal_sign and eth_sign?

Why are the params from the request object in reverse order between personal_sign and eth_sign? For example, the personal_sign request object has the hex message in params[0]: // Request { "id&...
jiamijiang's user avatar
1 vote
2 answers
133 views

ethereum-cryptography.js Problem recovering public-key from signature

Based on the following from ethereum-cryptography documentation: Upgrading from 1.0 to 2.0: secp256k1 module was changed massively: before, it was using noble-secp256k1 1.7; now it uses safer noble-...
Pedram Paravarpishe's user avatar
1 vote
2 answers
633 views

Can your Metamask get hacked by signing a message, no gas?

If I log into a new project with Metamask, and the operation costs no gas, can I get hacked? Does no gas mean you are safe when signing with Metamask?
kintsukuroi's user avatar
0 votes
2 answers
65 views

provide steps to deploy this contract from solidity by example

When i tried deploying this contract using 10 ethers, and then providing : claimPayment() -> amount - 9000000000000000000 i.e 9 ethers -> nonce - 123 -> signature - ...
ImBatman's user avatar
0 votes
1 answer
61 views

Ethers.js recovers wrong address when signing its transactions with elliptic.js

Can someone show me how to correctly sign an ether's unsigned transaction hash using elliptic npm package. Below is my attempt (with some random private key) and transaction should ideally fail with &...
kuco 23's user avatar
  • 228
1 vote
0 answers
15 views

Given a public key, is it possible to create a challenge that would produce a known signature, if signed by the corresponding private key?

Noob alert! Since hardware wallets don't support decryptWithPrivateKey function, I would like to make a workaround using signatures If it's possible to create the challenge, that would produce a pre-...
Anton Makiievskyi's user avatar
1 vote
0 answers
109 views

ECDSA wrong signature

I am facing a problem with my NFT Marketplace contract. I have LibOrder , LibOrderValidator and Marketplace contracts. When I want to create an order, I need to get a signature and I get a ...
0x.MRX's user avatar
  • 11
0 votes
1 answer
46 views

Create a digital signature hash via Gnosis/Safe Multisig Wallet

I have a multisig wallet setup at https://safe.global/. I need to prepare a TX which calls a contract, and one of the parameters of the function I am calling needs a digital signature of the (tightly ...
user2340939's user avatar
1 vote
1 answer
78 views

Invalid Permit Signature - Same Signature Generated by Different Address?

Our dApp uses Permit for gasless token approvals. We are generating a signature request with signTypedData, and it works except for a few strange occurrences where I am getting back an invalid ...
Jeffrey Dennison's user avatar
0 votes
1 answer
75 views

Is it possible to combine signing two cross-chain transactions into one single signing?

Lets say I have a transaction on ETH chain and one on BSC chain, I start the transaction on ETH chain and it asks for my signature. What I want to do is have it just ask for my signature once and have ...
Jaskaran Singh's user avatar
1 vote
1 answer
61 views

How to get r, s and v values for ecrecover using Solidity?

I've seen some answers showing how to get r, s, v values using web3.js but how to retrieve them using Solidity? Assuming I enter the signature into the contract.
ratib90486's user avatar
2 votes
1 answer
274 views

Say you sign a transaction, can you use that signed transaction to execute the transaction on another account?

Will that transaction function as if the signer sent it? I am assuming this is how limit orders for dapps such as Cowswap work. For example (assuming this is true): wallet A signs a Uniswap ...
hear har's user avatar
1 vote
1 answer
79 views

Metamask signature request with empty message

Can someone help me to understand these empty signature requests? For example using the Plutus Dex when clicking to stake your plu you got this: What does this mean? And what harm this can cause? And ...
BigLeo's user avatar
  • 141
4 votes
1 answer
201 views

How to sign message EIP-712 with whitespace in name?

I have a message need to sign like below message = { "types": { 'EIP712Domain': [{ 'name': "name", 'type': "string" ...
Mike's user avatar
  • 41
0 votes
0 answers
108 views

Autosign off-chain signatures in 1/n Gnosis Safe

I'm playing around with the WalletConnect off-chain signature repo: https://github.com/5afe/eip-1271-dapp/tree/main and I'm trying to find a way to create off-chain signed proposals without having to ...
Liberalite's user avatar
2 votes
1 answer
190 views

Generate r, s, v permit signature variables off chain using Golang

I'm trying to generate a signature in line with https://eips.ethereum.org/EIPS/eip-712 so that I can permit spending of tokens without having to call Approve() first. this is my code so far: func ...
PopFendi's user avatar
0 votes
0 answers
16 views

How to create an asset tracking/verification system

New to this (currently a Kotlin dev) so looking for some starting points to research how to create a system to do the following: Handle a user creating an asset with some data (e.g. a timesheet with ...
Dre's user avatar
  • 101
0 votes
1 answer
55 views

Unable to recover signer address using api/v1/safes/{address}/multisig-transactions

I am trying to sign a valid transaction hash (obtained from the onchain Gnosis Safe wallet itself) but when I sign the hash and then provide it to the multisig-transactions endpoint to propose the tx, ...
Markus's user avatar
  • 1
1 vote
1 answer
99 views

SWC-117 signature and ecrecover

source code is here. As the SWC-117 says "A signature should never be included into a signed message hash to check if previously messages have been processed by the contract.". I don't know ...
LEVI_104's user avatar
0 votes
1 answer
53 views

How do modifiers effect function signatures?

I want to change a function that my contract inherits to have a modifier, but are you allowed to add modifiers to overridden functions that didn't previously have a one?
Rohan Nero's user avatar
  • 1,522

1
2 3 4 5
11