Questions tagged [signature]
The signature tag has no usage guidance.
514
questions
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 - ...
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 &...
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-...
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 ...
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 ...
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 ...
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 ...
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.
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 ...
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 ...
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"
...
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 ...
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 ...
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 ...
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, ...
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 ...
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?
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 ...
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 ...
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 ...
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 ...
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('...
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 ...
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 = ...
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, ...
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,...
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/...
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": {
"...
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 ...
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 ...
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 ...
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. ...
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 ...
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 ...
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 ...
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 ...
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 ...
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. ...
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 ...
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 = "...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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....
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 ...
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 ...