Questions tagged [signature]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
2 answers
50 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
6 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
  • 218
1 vote
0 answers
14 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
48 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
14 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
34 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
27 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
26 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
68 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
17 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
  • 111
4 votes
1 answer
84 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
66 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
77 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
15 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
23 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
52 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
25 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,069
0 votes
1 answer
60 views

How to send signed data to backed and verify it?

On a web page I have some 3 fields, name, age and height, which a user authenticated via MetaMask sends to backend along with his wallet address. In JSON. In order to ensure that data that's sent ...
Camila326's user avatar
0 votes
0 answers
12 views

Signing a message which includes another signature

I'm trying to implement a commit-reveal scheme, where I also want to sign the input parameters to the Solidity function which commits the encrypted message. The signature verification of the input ...
user2340939's user avatar
1 vote
1 answer
237 views

How to Resolve "ambiguous primary types or unused types" Error with _TypedDataEncoder.hash?

I am trying to compute the hash to be signed for EIP-712 typed data using the ethers.js(v5.7.2) library in TypeScript. I'm using _TypedDataEncoder.hash() to hash the typed data, but I am encountering ...
MShakeG's user avatar
  • 1,099
0 votes
0 answers
27 views

Ethereum signature as XML

I am seeking to express an EIP 191 0x45 message signature according to the XML Signature Syntax. I assume this curve is the correct one: https://en.bitcoin.it/wiki/Secp256k1 For a signature over ...
lash's user avatar
  • 685
0 votes
1 answer
34 views

Error when sending a transaction to Open Zeppelin Defender

I am getting the following error from Open Zeppelin Defender: signature missing v and recoveryParam This is my code: const config = require("../config/config"); const ethers = require('...
Falcon Stakepool's user avatar
0 votes
1 answer
159 views

How to sign a meta-transaction using ethers?

I am trying to sign a meta-transaction so I can execute a function from a smart contract with 1 account but pay for gas fees with another. This is the code I have (this works when using MetaMask in a ...
Falcon Stakepool's user avatar
0 votes
3 answers
227 views

How to call ethers.utils.defaultAbiCoder.encode(types, values) in python?

I want to create a signature based on a hash value and a wallet address. In nodejs I would do it like follows: const types = ["address", "bytes32"]; const values = ...
rajohs's user avatar
  • 179
0 votes
1 answer
141 views

"invalid signature length" when trying to verify signature

I'm using the entire source code to sign and verify messages from https://solidity-by-example.org/signature/ on Remix. But when I go through the process of running the functions getMessageHash, ...
ratib90486's user avatar
0 votes
0 answers
54 views

How to get the hash in isValidSignature for ERC1271?

AFAIK, to verify a message, I need three things - message, signer wallet address and signature which is the signed message. Like when I use MyEtherWallet signing tool. But in function isValidSignature,...
ratib90486's user avatar
1 vote
1 answer
21 views

Invalid signature in mined transaction (txid 0xde26b1deeb157c634ad06d08cc4e533d663496a25c75443e10c1fe0e760cd0a5)

I have a encounter a stranged transaction with an invalid signature. This transaction has been registered in the block chain. Here the transaction in etherscan : https://etherscan.io/tx/...
rllola's user avatar
  • 111
1 vote
1 answer
99 views

How to get hash and signature of payload parameters using java

I want to use openSea's api, but I don't know how to get the hash and signature of this json object using java. https://docs.opensea.io/reference/create-an-order { "parameters": { "...
yuta O's user avatar
  • 11
1 vote
1 answer
61 views

Signing messages in cpp

I am trying to execute eth transactions from cpp. For that we need to be able to sign messages using Elliptic curve algorithm. I have found this repo, but output signature is different from what we ...
Jatin Garg's user avatar
1 vote
0 answers
28 views

What kind of malicious activity could an RPC gateway inflict on the user?

Let's say, a third-party RPC gateway for an Ethereum-like networks decided to turn itself into a malicious one. Apart from the likes of selling users' data, what kind of malicious activity could it ...
Kyell's user avatar
  • 91
0 votes
1 answer
50 views

Is private key sent out at any ocassion in a request to any RPC?

Do I understand correnctly that no RPC whether it be the standard Ethereum full node, or an RPC/REST API gateway, require a private key to be sent to it in the pure text? A private key is only used to ...
Kyell's user avatar
  • 91
2 votes
1 answer
228 views

Issues verifying signed data for Permit2

I'm trying to develop an end-to-end system using Uniswap's Permit2 (AllowanceTransfer). To achieve that, after the Permit2 allowance, I have to sign a message and verify its integrity contract side. ...
razgraf's user avatar
  • 780
0 votes
2 answers
58 views

If not "Not-Before" is in the future, does it make the message invalid? EIP-4361

The current "Sign-In with Ethereum" EIP provides the following description of the Not-Before field, which is quite ambiguous: not-before (optional) is the ISO 8601 datetime string that, if ...
timetowonder's user avatar
1 vote
1 answer
87 views

Why do we use circom circuit in zero knowledge?

As a smart contract developer, I am unable to understand why do we use circom circuits for zero knowledge proofs? All the examples like A*B = C can be done in javascript and solidity. We can also ...
EresDev's user avatar
  • 111
0 votes
1 answer
37 views

Custom digital signature of a wallet

I would like to get a custom signature from a wallet. What I mean is, according to EIP-712 the signature algorithm used in Ethereum is kekkac256; I would like instead to use a custom signature ...
Mattia Monari's user avatar
1 vote
0 answers
40 views

How to let client side sign the transaction and send it to blockchain

This mint function is giving me this error Uncaught (in promise) Error: Returned error: transaction could not be decoded: unsupported transaction type And if I use ethereum-js/tx module to serialize ...
kaan.py's user avatar
  • 11
3 votes
0 answers
24 views

Is there a library to sign transactions using a cold wallet?

I have a Ledger Nano S I want to use for signing transactions on a server. Is it possible to use a library to do this every time without the need of someone manipulating the hardware wallet but ...
Falcon Stakepool's user avatar
0 votes
0 answers
7 views

Verify computation result on chain

I would like to know if there is a way to verify the correctness of an input (a number) on-chain. This is my current design: The deposit function on contractA takes an input called computeResult. ...
mrdeep's user avatar
  • 1
1 vote
0 answers
66 views

Can I use a BLS12-381 private key to sign Ethereum transactions?

I'm new to cryptography and I've recently been studying BLS signatures. Please forgive me if I make any mistakes while writing. I've tried generating a BLS key pair and using the private key to derive ...
pgermani's user avatar
0 votes
1 answer
254 views

Convert eth_signTypedData_v4 signature to (v r s) format [duplicate]

I have signature that I signed with "eth_signTypedData_v4" method: signature = "...
Kanopi's user avatar
  • 1
0 votes
0 answers
83 views

why Seaport Opeansea testnets API return "null" for signature?

I am trying to retrieve offers detail using seaport API for a given asset contract for a given token ID but it returns null for the signature field. My understanding is that this signature is the ...
Surbhi Audichya's user avatar
0 votes
1 answer
114 views

Hash batch of transactions using EIP712

Using Uniswap's Permit2 contract as a base, how do I hash a batch of transactions in Solidity using EIP712? This is the way for hashing a single transactions and it works without issues: return ...
dNyrM's user avatar
  • 675
1 vote
0 answers
85 views

How can I accept a buy offer for a specific NFT from a given collection on OpenSea using a Solidity smart contract?

How can I accept a buy offer for a specific NFT from a given collection on OpenSea using a Solidity smart contract? I have an NFT collection X listed on OpenSea and there are several buy offers. I ...
Surbhi Audichya's user avatar
0 votes
0 answers
28 views

Storing credentials inside NFTs

I was wondering whether it was possible to store credentials or sensible informations inside a NFT in a secure way. The only way it came to my mind was encrypting the data using the private key of the ...
Mattia Monari's user avatar
0 votes
0 answers
9 views

Expected Primary Expression error on signature function

With this isValidSignature function: // NOTE: This method not safe, contract may attack by signature replay. /** * Verify if the signer has a valid signature as claimed * @param signer ...
AAMCODE's user avatar
  • 133
1 vote
0 answers
44 views

How to transfer ETH using signature

I've browsing and interacting with ZKSync ,which i came across sign a signature I was curious to know how i can create a function like transfer ETH or possibly ERC20 token using signature, i know ...
Alireza's user avatar
  • 350
1 vote
0 answers
77 views

Public Key from Transactional Hash of Type 2 EIP-1559

Is it possible to derive the public key based solely on information provided from the transaction hash? It must be able to work on newer transactions (type 0x02 transactions EIP-1559).I want to get ...
ECZY's user avatar
  • 11
0 votes
1 answer
186 views

Retrieve sender public key from ethereum transactions

I have tried using the eth_account library but it doesnt work on newer transactions (type 0x02 transactions). What is a method of retrieval that would work on those transactions? from eth_account....
ChuanC's user avatar
  • 1
1 vote
1 answer
28 views

A transaction call only if two addresses agree

I have a smart contract and i want a function (transaction) only be called if two addresses agree (maybe signs it or whatever), How can i solve this ? should i use Gnosis Safe to create a multisig ...
noro meb's user avatar
  • 328
0 votes
0 answers
37 views

Custom Message Signature Verification on-chain

I have a contract that I'm trying to emulate via meta-transactions. My intention is to allow users to sign a hashed version of function arguments, and then recover the signature later, but I don't ...
Marcus's user avatar
  • 41

1
2 3 4 5
11