Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [signature]

The tag has no usage guidance.

1
vote
1answer
15 views

Signed Message Verification failing for signed messages with multiple passes

I'm using web3 to verify signed messages using the code below: web3.eth.accounts.recover(message, signature); I'm testing against the list of publicly verified signatures on EtherScan - https://...
1
vote
1answer
28 views

Retrieve public key and check the signature with web3

I create a transaction with signTransaction and I have an output like this: "signedTx": { "messageHash": "0x..", "v": "0x..", "r": "0x..", "s": "0x..", "rawTransaction": "0x....." ...
1
vote
1answer
44 views

Understanding Ethereum signatures

I would like to understand exactly which signatures are used in the Ethereum. Here https://bitcoin.stackexchange.com/questions/12554/why-the-signature-is-always-65-13232-bytes-long it says that there ...
0
votes
1answer
30 views

Sign message (obtain v,r,s) inside Solidity

I'm trying to call an Exchange SmartContract which is POORLY designed/implemented and forces you to sign your own parameters instead of using msg.sender (and provides no alternative). <-- I've just ...
0
votes
1answer
28 views

eth.sign() method giving error

I am using eth.sign from Ethereum wallet developer terminal and getting following error rejection Error: Returned Error: The method eth_sign does not exist/is not available Please advise whats the ...
1
vote
1answer
58 views

Invalid sender when sending Raw Transaction, signed w/ ethereum-tx on PHP

I am using PHP and ethereum-tx library https://github.com/web3p/ethereum-tx to sign transactions but when trying to send them to the node I got an "invalid sender" error. Besides, exactly the same ...
-1
votes
0answers
26 views

Digital Signature Prefix Version Compatibility for web3

I am part of a team that develops a dApp that runs on multiple clients on Android, iOS, and Web. So all the signatures for the same data should be exactly the same (considering v value may differ - ...
0
votes
2answers
55 views

Signing legal smart contracts

In "conventional", physical legal contracts, parties usually sign them with a handwritten/electronic/digital signature, depending on the form of the contract. But as legal smart contracts are ...
1
vote
1answer
20 views

Why ethereum dons't store transaction signature?

Ethereum doesn't store transaction signature (r,s,v) in its tries. The first answer in that it is state-based, not UTXO based: Retrieve the signature of a transaction on the blockchain But there is ...
0
votes
0answers
34 views

Controlling access to functions with VIEW visibility with signed transactions?

Controlling access to functions that require ETH is straight forward because you get an address you can trust because it has been signed and verified, and therefore upi can use for access control ...
1
vote
0answers
35 views

web3 recover address from signature signed by digital bitbox

I use digital bitbox to sign some data and would like to use web3.js to recover the account address. Following https://web3js.readthedocs.io/en/1.0/web3-eth-accounts.html#recover I couldn't ...
1
vote
0answers
15 views

Why is an ephemeral key used in creating a digital signature?

When creating the 'S' component of a digital signature, both the actual private key and an ephemeral private key are used. The reasoning I've read is to ensure that the sender’s actual private key ...
0
votes
0answers
11 views

compare signed and unsigned hash [duplicate]

with ecrecover the signer's address can be extracted from a signed hash: ecrecover(signedHash, v, r, s) == address But I could not discover how to validate the hash. function validateHash(...
0
votes
2answers
45 views

avoid replay attacks on signing on smart contracts

the scenario: a user has a privatekey and wants to sign something to send to the contract ex: the user send his (message,signature,publickey) to the contract and the contract can verify it with the ...
0
votes
1answer
14 views

Power of signing transactions and what you can do with that

I have been playing around with state channels and am starting to see the power of signing information/transactions, but haven't got a completely clear idea of what I can do with them. I think I can ...
2
votes
1answer
326 views

How to get private keys on Truffle from Ganache accounts

Doing some ERC-735 tests on truffle+ganache I got stuck when creating claim signatures. They need to be signed from my ganache account, but I don't know its private key. The code to be used is this: ...
1
vote
0answers
84 views

Signing a transaction: What is actually signed? [noob question]

I'm trying to wrap my head around how signing transactions actually works. As I understand ECDSA signatures roughly work like this: There is a magic function, let's call it sign that takes two ...
1
vote
1answer
54 views

web3py: get public key from transaction

I'm trying to retrieve the public key of an address from a transaction. I'm getting the transaction via tx = web3.eth.getTransaction('xxx') According to the docs the public key should be retrievable ...
0
votes
2answers
50 views

Different Values for v, r, s? What am I doing wrong?

lets assume I have this private key (test account on ropsten, no need to worry): 785cdcd731a1b2438ec4511a25d04efbdc499ed350df612364af1aa6f4fd6abd When I use Pyethereum to run v, r, s = ecsign(tx['...
0
votes
1answer
23 views

Facing an issue in transaction signature generation using a C library

I'm trying to generate a signature for a raw transaction using an ECDSA library implemented in C. Here are the transaction parameters: const txParams = { "nonce": "0x05", "gasPrice": "...
2
votes
0answers
268 views

Verify Public Key from an RSA SHA256 signature

Given an RSA SHA256 signature (obtained from encrypting a hash using an RSA Private Key), I must assert whether a provided Public Key matches this signature or not. It is imperative that this ...
3
votes
1answer
115 views

Does Ethereum support pairing operations?

I need to build an application that uses bilinear pairing operations for generating signatures. If I send a message with its signature to Ethereum, can Ethereum verify this message? Does the EVM ...
2
votes
2answers
45 views

how do you sign transactions programatically?

imagine there's a dapp you're building and on your website users type the receiver address, the value and what you do is send from that user's address to the receiver's address the value ether. My ...
0
votes
1answer
54 views

messageHash hash function

In this example, by which algorithm is messageHash hashed by? web3.eth.accounts.sign("Hello, world!", '0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef') { message: 'Hello, world!', ...
2
votes
4answers
135 views

Get rid of Metamask sign confirmation dialog

I am using web3 for users to sign some random string from web application. I give user string, he/she signs it after Metamask dialog's "Sign" button. but there is a problem when i want user to sign ...
0
votes
1answer
75 views

Can smart contracts make transactions on behalf of the caller?

I want to make a smart contract that wraps over other various smart contracts. In some of these contracts the user needs to send the transaction themselves. Is it possible to make a smart contract ...
1
vote
1answer
110 views

Why doesn't my contract call create a new transaction in my ganache transaction section?

goes easy on me because I'm quite new to all of this stuff. So I've created a function which signs my transaction using web3js library and looks like this: signTx = async () => { const { ...
2
votes
1answer
94 views

Invalid transaction signature on sending transaction

Hello guys I'm having a "Invalid transaction signature." error. Can't get pass this one. Am I missing something? client, err := ethclient.Dial("path/to/geth.ipc") if err != nil { return err } ks :...
0
votes
1answer
151 views

generating raw trx and sending it to the network shows “invalid sender” error

I'm trying to make an ethereum raw transaction by php and these libraries: https://github.com/simplito/elliptic-php https://github.com/kornrunner/php-keccak https://github.com/web3p/rlp this is my ...
1
vote
1answer
104 views

generate v parameter in ethereum transaction

I'm trying to generate ethereum raw transactions. this is keccak hash of my transaction: f2ad2e2b6f398f76df2f5adacc84e39e926871bd2f82a3055319f8d4f4eeb8ce after signing it with my private key I ...
1
vote
1answer
43 views

Digital Identity with signing

Is there a way to sign some data right out from a smart contract? Let's say I want to create a smart contract, that will represent my Digital Identity and I want it to have sign() method. Maybe ...
0
votes
0answers
57 views

Ether.js set storage transaction does not show on Rinkeby etherscan

I've deployed a very simple contract that basicaly allows to set and get a message. When I run "node myTest.js" I get the result of the output bellow. It indeed access my contract, deployed at Rinkeby ...
0
votes
0answers
34 views

What is an “executable signed message”?

What is an "executable signed message", in non technical as well as in technical terms?
0
votes
0answers
82 views

Signature verification at smart contract

Is there any way to verify signature in ethereum other than ecrecover() and built in ethereum account with help of private/public keys
3
votes
1answer
194 views

Verification of externally-created ECDSA signatures in Solidity

I have ECDSA signatures created using Golang without using web3 or anything related to Ethereum, and I want to verify these in Solidity. Step 1: Signing the message in Golang My Go code to create ...
2
votes
0answers
191 views

Recover address from signature using web3j

I have signed a data string using the following code snippet in web3js var data = "hello world"; web3.personal.sign(web3.fromUtf8(data), web3.eth.accounts[0], function(error, result) { if (!...
1
vote
0answers
48 views

How can I sign a transaction using c or c++(arduino) [closed]

I want to create and sign transactions on arduino as offline.But I am not know this.Please help me.
3
votes
1answer
111 views

Why is s in transaction signature limited to n/2+1

In the Yellow paper, appendix F "Signing Transactions", it says a valid signature must satisfy: (281) 0 < s < secp256k1n ÷ 2 + 1 However, in both the cited paper here (ECDSA SIGNATURE ...
2
votes
1answer
42 views

What is “electrum style signature”?

In the Yellow paper, appendix F "Signing Transactions", (BYZANTIUM VERSION f72032b - 2018-05-04 to be specific), it says: The method of signing transactions is similar to the ‘Electrum style ...
1
vote
1answer
212 views

Recover JavaScript Signed Message in Python Web3

Running into problems taking a signed message from Web3.js, and recovering the signing address in Web3.py. Here is my code in JavaScript to create a signed message: async function sign_message() { ...
0
votes
1answer
543 views

How to be sure about “MetaMask web3 Provider” connection?

Note: This question is related to this : "Updated :" How to see "output" of "web3.personal.sign" in "browser"? ("Method personal_sign not supported") ...
0
votes
1answer
223 views

“Updated :” How to see “output” of “web3.personal.sign” in “browser”? (“Method personal_sign not supported”)

Note: I updated the html / JavaScript code according to the answer and I used THIS META MASK sample code for web3 provider. However, I receive the same error. I eventually did not understand that do I ...
1
vote
1answer
364 views

How to use “web3.js library” in a “JavaScript” file without using “require(”web3“)”?

Consider we want to use web3.personal.sign in a JavaScript file. So, we need to add : Web3 = require("web3") web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:8545")); at top of our ...
2
votes
0answers
121 views

Is the signature generated by “web3.personal.sign” different with “web3.eth.sign”?

Are web3.personal.sign and web3.eth.sign difference in value of generate signature ? Or both of them generate an equal output ? I could test web3.eth.sign using testRPC, however web3.personal.sign ...
0
votes
0answers
68 views

UPDATE: (I need to run testrpc before running the code) Problem with signing a message with “web3.eth.personal.sign” or “web3.eth.sign”

I use exactly the example of web3js (here) to sign a text. So, I generated a .js file asfollows : Web3 = require("web3") web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:8545")); ...
0
votes
0answers
196 views

(NEW UPDATE: I need to run “testrpc”) Signing a message using “ethereumjs-abi”? (Error: Invalid JSON RPC response: “”)

I am trying to sign a message using following JavaScript code (from HERE) function constructPaymentMessage(contractAddress, amount) { return ethereumjs.ABI.soliditySHA3( ["address", "uint256"], ...
0
votes
0answers
10 views

how to do ethereum sign from rawTx [duplicate]

I want to sign a ethereum transaction from rawTx this is my RLP encode tx f864 01 850 4a817c800 82 5208 94 e0defb92145fef3c3a945637705fafd3aa74a241 01 after this encode, I need to hash this tx and ...
0
votes
1answer
139 views

Broadcast error rlp: non-canonical integer (leading zero bytes) for uint64

Here's a transaction to broadcast: ...
2
votes
1answer
243 views

How can we verify BGLS aggregate signatures in Solidity?

BGLS [1] is an aggregate signature scheme by Boneh et al., that allows aggregation of signatures on n different messages from n different signers. What I want to achieve is to verify such signatures ...
1
vote
2answers
234 views

How can I simply sign an Ethereum transaction?

I want to use blockcypher to work with the Ethereum network. In the documentation they give an example of a signer tool written on Go, but I'm use Python. What is the simplest way to sign a ...