Questions tagged [signature]

The tag has no usage guidance.

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

Risk of Messages Not Having a Signature

As per my understanding transactions are signed before sending to Ethereum. Else, no transfer of Ether will happen. However, messages sent to Smart Contracts (SC) aren't signed (e.g., using methods....
2
votes
1answer
28 views

ecrecover in c++

can anyone spot what I am doing wrong? I am trying to recover the public address from data signed by web3.personal.sign in Metamask and with this code the public address comes out wrong. Hash and hex/...
0
votes
1answer
20 views

How to extract or create a message with web3.js to sign with an external hardware device?

I'm using the Web3 library. I want to extract a signature hash from a Web3 transaction to send to an external hardware device, sign it there, then use the signature I get from there to broadcast my ...
0
votes
1answer
12 views

How can i `ecrecover` in solidity to verify the digest produced by `web3.utils.soliditySha3` in JS side?

Javascript side: id = 128 uri = "xxx://xxx" hash = web3.utils.soliditySha3(id,uri) sign = web3.eth.accounts.sign(hash1, privateKey) Solidity side: function(uint256 id, string memory uri,bytes v, ...
2
votes
1answer
14 views

How is the length of the message counted when calling eth_sign?

According to https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_sign The sign method calculates an Ethereum specific signature with: sign(keccak256("\x19Ethereum Signed Message:\n" + len(message) +...
1
vote
0answers
24 views

EIP712 implementation for web3 1.0

I tried replicating the instructions in this article to implement EIP712 signing, however, it doesn't appear to work for web3 1.0 versions. https://medium.com/metamask/eip712-is-coming-what-to-expect-...
0
votes
1answer
41 views

Solidity: extract data from signed message?

In an effort to reduce gas costs for users, I'm looking for a way to delegate certain transactions to a contract owner so that the owner makes a transactions that would have been otherwise sent by the ...
0
votes
0answers
11 views

Cannot get returned signature

I have met a problem when I am developing a Metamask installed Dapp. I am using web3.personal.sign()to get the signature of accounts. However, I could not get the returned signature string from this ...
1
vote
0answers
20 views

Cross-posted from Stack-Overflow: Using Google Cloud Key Management Service to sign an Ethereum transaction

Cross-posted from question I've been working on writing a signer service for an Ethereum transaction manager and I need to sign Ethereum transactions using Google KMS Golang APIs. I'll try and ...
0
votes
1answer
52 views

How to do RSA signature verification based on eip-198

based on EIP-198 and a question asked here After EIP 198 introduction, how much gas is required for RSA signature verification in solidity? it should now be possible to do RSA signature verification ...
0
votes
1answer
60 views

Calling signature functions in web3.js 1.0 reports invalid address and cannot read address property

I am doing a project with inserted Metamask to achieve on-click blockchain account login. When I am calling the signature function web3.eth.sign("Hello world", "...
3
votes
0answers
33 views

Cheap EC Operations on Unsupported Curves

I want to be able to verify signatures created by smart meters. Unfortunately, their signature algorithm doesn't use curve ALT_BN_128 but BrainpoolP256r1. I wrote this verification algorithm that ...
0
votes
1answer
30 views

Where is storaged the publickey for any account?

I have been reading the Ethereum Yellow paperthat for any account there are four parameters: nonce balance storageRoot codeHash A transaction is signed using three parameters: r,s,v According to ...
0
votes
0answers
16 views

Why Does Metamask Show The Sign Prompt But Have web3.eth.sign Undefined?

I am trying to make the end user sign something. I hosted this on with python simplehttpserver: web3.eth.sign(web3.eth.accounts[0],"asdf" ,function(error, result){ if(!error) console.log(JSON....
0
votes
2answers
19 views

What Is Done In The Signing And Posting In An Ethereum Transaction? [duplicate]

If I sign an ethereum transaction, what am I signing? Am I signing something like {send: 123456, to: deadbeef2345}, or something else? What is it? At the same time, what do I do to my signed ...
2
votes
1answer
124 views

Using AWS CloudHSM to sign transactions

Does somebody knows how to properly use AWS CloudHSM to sign ethereum transactions (Keccak256)?
0
votes
0answers
13 views

Ecrecover security level for fixed message signature verification

usually ownership of a private key is checked by providing some random message to user and ask him to sign that random message. I want to know if security goes below acceptable level If instead of ...
1
vote
2answers
64 views

ecrecover() always returns 0x0000000000000000000000000000000000000000

I'm aware of these posts How do you sign an verify a message in javascript proving you own an Ethereum address? How does one properly use ecrecover to verify Ethereum signatures? I'd like to sign a ...
0
votes
0answers
16 views

signature verification without solidity

Hello I want to verify a signature and the format should be VRS (Ethereum standard secp256k1 signature format) and I want to achieve it using only "Java". I found ways to do it using Web3j and ...
2
votes
0answers
58 views

Signing a raw transaction, OpenSSL, C++

I'm trying to sign my raw transaction and each time I'm getting a different signature (r, s). Please help me how to sign transactions properly in C++ OpenSSL. I'm trying the following way but ...
2
votes
0answers
54 views

How the following pairing equality be verified in Etherum Smart contracts?

I have found available precompiled contracts in solidity. For example, this answer enter link description here points out a precompiled contract that can verify BLS signature. However, looking to the ...
2
votes
1answer
65 views

Errors in when compiling the BLS signature in remix?

Etherum can verify BLS signatures, In this answer Does Ethereum support pairing operations? There is an example of how to verify BLS in solidity. However, when I tried to test the code in remix, ...
0
votes
0answers
30 views

What way there is to implement a new signing scheme in Ethereum?

I want to deploy a new signing scheme for the Ethereum transactions as an alternative to the currently implemented ECDSA. This will be for future research purposes on post-quantum signing schemes. The ...
1
vote
1answer
92 views

Sending a raw transaction

I'm trying to send ether from one address to another. I have a valid generated address and a private key for that. I have a node is working on Linux in fullmode and RPC server listening on the default ...
0
votes
1answer
24 views

Is it safe to sign messages with Personal Sign?

I need to sign a message on behalf of the owner and allow the user to deliver my signed message to the contract. I read the metamask documentation, sample signatures, and many different source code ...
0
votes
0answers
22 views

How to sign a txn using web3 (1.0) and nodejs?

Firstly I know this has been asked before, but I have became confused with so many different formats and the move to 1.0. Many online resources do not make it clear about the version and I have become ...
2
votes
1answer
36 views

bn256 and Boneh-Boyen digital signature in solidity

I am looking to have a full-fledged implementation of bn256 in solidity. And Boneh-Boyen digital signature. Is there is any available built-in libraries or implementation in solidity to bn256 and ...
0
votes
1answer
39 views

Multisig function calls

I am making a dapp in which ethereum user accounts that call certain functions are rewarded with an ERC20 token. All the dapp is based on functions using only one ethereum account as parameter. But if ...
0
votes
0answers
33 views

web3.eth.sign() problem [duplicate]

I am using infura and web3 0.20.0 in back-end.(nodejs, I don't want to interact with metamask(front-end)) Now, I am facing a problem. I tried to use ERC865. solidity function ...
2
votes
1answer
31 views

How to retrieve transaction hash value from the Promise object using web3js?

I'm trying to retrieve the transaction hash value after I call my smart contract method. My Promise object looks like below. returnPromise: Promise { "pending" } ​ <state>: "...
0
votes
1answer
17 views

sign 2 things at once

When a user unlocks their private key can two things be signed at once? such as a message as well as a transaction, where the transaction is basically just another message that is meant to be ...
0
votes
0answers
33 views

Create a signature using web3 dapp and verify in Solidity contract

I would like to create a dapp where by users can call a function on a smart contract, proving that they know a secret phrase. I am thinking that I would use web3.js to create an public / private key ...
0
votes
1answer
50 views

How do I get the address from a signature?

As stated in the question, I have the v, r and s values of a signature given and am trying to find the belonging address. All questions similar to this solved it by either using a solidity smart ...
0
votes
0answers
49 views

How to make ECDSA signature of (value_1, value_2) with web3 on Python?

I want to call function with four parameters. I know how to create two of them, but the last two is the r and s components of ECDSA signature of (param_1, param_2). I tried this (and a lot of ...
0
votes
1answer
36 views

Is S of the signature(R,S) invalid when it is larger than N/2 in Ethereum? [duplicate]

In ECDSA, both signature(r,s) and (r,-s) are valid. However, in Bitcoin, it seems that the signature fails to be verified when s-part in the signature is bigger than half of the group order from this ...
3
votes
1answer
111 views

How do I extract the v, r, s values from a signed transaction

If I have a signed transaction such as ...
1
vote
0answers
26 views

Why is ethereum not using threshold signatures like dfinity for randomness? What's the drawback?

So ethereum goes for RANDAO. The disadvantage with randao is that the last validator in the commit-reveal scheme is able to hold his contributed value back and thereby influence the random outcome. ...
0
votes
0answers
57 views

Use Web3 to recover address from message signed by ethers.js?

On the client we are using ethers: const signingKey = new ethers.utils.SigningKey(privateKey) const message = Date.now() const messageBytes = ethers.utils.toUtf8Bytes(String(message)) const ...
0
votes
1answer
28 views

how can a signature for a document on a blockchain be revoked?

I am trying to do document verification through blockchain. The way I'm trying to do this is by digitally signing a document, and storing its hash on the blockchain. Now I'm trying to create a feature ...
1
vote
1answer
77 views

web3js recover returns different address than what signed message

Web3js as of version 1.0.0 beta supports an interface for verifying signed messages: https://github.com/ethereum/web3.js/issues/404 This is documented here: https://web3js.readthedocs.io/en/1.0/web3-...
0
votes
1answer
48 views

How can Contracts sign transactions, when they dont have a private key?

When transactions are made the sender is identified by his signature. But Contracts dont have a private key to sign any transaction or message. So I have some questions: Can a Contract initiate a ...
2
votes
1answer
130 views

Signing meesage | hex string has length 64, want 40 for common.Address

I am using 'web3.eth.sign` to sign a message, using following code snippet: web3.eth.sign(msgHash, address, async (err, signedMsg) => { if(err) { console.log(err) resolve(false) } else ...
1
vote
0answers
598 views

The object could not be cloned. && DOMException: Failed to execute 'postMessage' on 'Window'

When I try to sign a message with this simple function const signatue = await window.web3.eth.sign(hash, userAddress) I get an error. In firefox I get Unhandled promise rejection DOMException: "The ...
1
vote
0answers
54 views

Ecrecover wrong address is returned

I'm trying to validate signed data with ecrecover. The message is signed like this on the FE: return this.web3.eth.personal.sign( `${nonce}`, publicAddress ).then( ( signature ) => { ...
0
votes
0answers
91 views

How does a message signed in Remix IDE?

What is signing method that is used in remix IDE and how is the hash value calculated from the message that is being signed?
0
votes
2answers
31 views

Is there any command-line tool to sign transactions offline on a Linux machine?

I have an air-gapped machine with Ubuntu Server. Is there any command line tool which I can quickly download to sign offline transactions? Something like: sign-tx private_key_file nonce=10 gasPrice=.....
0
votes
0answers
468 views

TypeError: Cannot read property 'slice' of undefined

web3.eth.accounts.signTransaction(transactionObject, process.env.WALLET_PRIVATE_KEY, function (error, signedTx) { if (error) { log(`${error}`.red); } else { web3.eth....
2
votes
0answers
42 views

Automatic sign of Transaction

Is there any secure solution(without exposing a Private key of the user) to automatically sign transactions, which are requested from a DApp, so that user doesn't have to sign each of them manually? I ...
0
votes
0answers
29 views

In ethereumj, why the signature use loop to get v?

In the java version of Ethereum, I see the signature code as follows: public ECDSASignature sign(byte[] messageHash) { ECDSASignature sig = doSign(messageHash); // Now we have to work ...
1
vote
2answers
81 views

Why does ecrecover() take signature parameters (v,r,s) instead of the full signature?

Is there any reason ecrecover() takes the (v, r, s) signature parameters instead of the full signature, given that these can be easily computed inside the function itself? I am asking because ...