Questions tagged [signature]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
4answers
1k views

When is a transaction signature checked in a contract?

In the Solidity tutorial and examples here, I don't see any signature checking. In particular, in the contracts provided there, they don't check whether the sender of a message is actually the person ...
1
vote
1answer
393 views

How do you multi-sign a piece of data with multiple keys?

I'm aware how one can sign a message with a single key using web3.eth.sign or helpeth. How can multiple keys sign the same message? (preferably with an example using web3)
3
votes
2answers
3k views

Is it possible to sign a message in Solidity?

I am trying to sign and verify a signature in Solidity. I understood that it is possible to verify a signature using ecrecover. However, I am not able to find any useful information on signing.
2
votes
1answer
739 views

How public key is recovered for signature verification?

I see address everywhere in ethereum but not public key, and I understood that address is Keccak-256 of pubkey, and I do not think it is possible to derive pubkey from address. So, my question is ...
8
votes
2answers
661 views

What if two ether functions have the same signature?

It should not be hard to find collision. There is only 4 294 967 296 possible signatures.
5
votes
1answer
4k views

Can I web3.eth.sign with private key

I want to use web3.eth.sign to create a signature that will be stored in blockchain and verified later by a contract (with ecrecover). I'd like to use as few libraries as possible. Web3 docs specify ...
4
votes
1answer
1k views

Mobile app to sign tx of another app (similar to Metamask in browser)?

I am looking at an architecture of a native (this is given!) iOS app which I want to integrate with an external wallet. For web apps we have the beloved Metamask which takes care of signing txs. Since ...
1
vote
3answers
393 views

How to cryptographically challenge a public/private address key pair?

I know that in the Ethereum protocol, users submit transaction by cryptographically 'signing' their transactions using their private key to prove to the miners that they do own that key but without ...
1
vote
2answers
2k views

Should signed text messages use the “\x19Ethereum Signed Message” prefix?

Background: I want to implement sign message feature in Trezor. Is there a standard for signing text messages? So far I found out that etherscan.io signs messages without the prefix, i.e. it signs ...
3
votes
1answer
556 views

I need help with signatures

So, for my studies, I am supposed to interact with a contract function that has the following built in condition: if (ecrecover(_h, _v, _r, _s) == msg.sender && _h == sha3(this)) I am ...
1
vote
1answer
2k views

Python ECDSA Public Key Recovery

How do you recover the EC public key from a VRS style signature in python? I am trying to setup some encryption between two parties via ECIES, but I first wanted to obtain the public key via recovery ...
1
vote
1answer
247 views

How to confirm request in Parity

enter link description hereI send a transaction with contract. I use unlock account to account it. It can skip the first confirm. Which is asked to confirm deploy. But it can't skip the second confirm,...
0
votes
2answers
650 views

how to sign a smart contract and transaction.If somebody does not sign the contract,does it means that he is or not part of the network?

Let's say peer A creates a smart contract and deploys it. If peer B wants to sign that contract how he will be able to do it? Also if peer A wants to send a transaction how he will be able to sign the ...
6
votes
3answers
4k views

Signing a raw transaction in Go

I need to sign an offline transaction in golang. I have the following, which is a slight modification of this answer to a similar question: import "github.com/ethereum/go-ethereum/core/types" import "...
1
vote
1answer
450 views

sending raw transaction unsuccessful

I am developing a light wallet for a private network. I use ethereumjs-accounts for storing accounts locally and ethereum-tx for signing transactions. I have deployed custom token-contract. Here is my ...
4
votes
0answers
286 views

Why are there discrepancies between client message signatures?

I have been investigating message signing using an Ethereum account, and have become somewhat bemused by the different signatures that I receive from different clients and different libraries. I have ...
27
votes
1answer
13k views

What does v, r, s in eth_getTransactionByHash mean?

In Ethereum JSON-RPC I found the return is: Returns Object - A transaction object, or null when no transaction was found: hash: DATA, 32 Bytes - hash of the transaction. nonce: QUANTITY - the number ...
12
votes
1answer
768 views

Ethereum signature verification not matching

What I want to achieve is sign a message and then verify the signature whether verified by same address or not. Contract to Invoke ecrecover method to verify the address contract MyAuth { ...
4
votes
2answers
546 views

Sign transaction on ARM microcontroller

Is it possible to sign transaction on ARM Microcontroller and then somehow broadcast it? I have read about ethereumjs-tx, but how to implement it without any OS on board? UDPADE: I have found how to ...
3
votes
1answer
512 views

Ecrecover after eth_sign update with preamble

I've just discovered that with b59c839 geth is now pre-appending the string: *\x19Ethereum Signed Message:\n<length of message>* before signing the passed message. I've read here that to use ...
38
votes
4answers
17k views

Get public key of any ethereum account

Can I somehow get the public key of an ethereum account knowing just the corresponding ethereum address (e.g. 0x54dbb737eac5007103e729e9ab7ce64a6850a310)?
0
votes
1answer
120 views

Can I add leading zeroes at will when building an RLP-encoded transaction?

Suppose I'm building a transaction such as: const raw = [ new Buffer("0001", "hex"), new Buffer("23000000000", "hex"), new Buffer("21000", "hex"), new Buffer("0x00000000000000000000"),...
5
votes
1answer
689 views

web3.eth.sign not returning a valid signature - Or how else does this work?

EDIT: Problem Solved; working example of login below I use the sha3 of a message I want to sign with eth.sign m = web3.sha3("Please work.") I then runeth.sign(eth.coinbase, m) And it returns me: ...
15
votes
5answers
8k views

How do you sign an verify a message in javascript proving you own an Ethereum address?

Is there a js library or even just pure js where I can sign and verify I own an Ethereum address?
11
votes
2answers
8k views

Invalid sender error on private chain

I created a transaction in Go, signed it with a EIP155Signer signer, but when I try to publish the transaction through the Go client to the private blockchain, I get the error Invalid sender. Any idea ...
5
votes
1answer
1k views

How to get signature parameters from a transaction?

In my application I have to manually verify certain transaction signatures on the ethereum blockchain. Atm I am running geth and parity nodes and query transaction information via the rpc interface ...
2
votes
1answer
720 views

Secp256k1 bindings are not compiled. Pure JS implementation will be used

I am trying to create a meteor dapp that can sign a piece of data and then recover the address it was signed with. When I run the dapp I get this error in the console: Secp256k1 bindings are not ...
8
votes
4answers
1k views

How can I verify a secp256r1 signature using solidity

Sorry if you find these questions are basic, but I am new to encryption. As far as I know, Solidity have ecrecover function for this purpose, but it use secp256k1 signature. which I am intend to use ...
15
votes
1answer
2k views

Getting the wrong address back from ecrecover

When I sign a string using the following code I get back a different address to the one I signed with. The address returned is different for different strings. const util = require('ethereumjs-util') ...
8
votes
1answer
5k views

Getting an address from ethereumjs-utils ecrecover

I am trying to sign a string using web3.eth.sign() and then get the public key I signed with from the signature. To do this I am using ecrecover() from ethereumjs-utils, which returns a buffer. When I ...
5
votes
1answer
3k views

What are the IDs for the various Ethereum chains? [duplicate]

I'm looking to find the chain ID's for each network (homestead, etc.). I believe the v-value of signatures is associated with these to some extent. I'm also under the impression that the ropsten ID ...
6
votes
1answer
753 views

How to sign a message using secp256k1 in Ruby?

I'm trying to write a sign function in Ruby for Ethereum using secp256k1. I have access to this sign_compact function which seems to be for Bitcoin: https://github.com/lian/bitcoin-ruby/blob/master/...
5
votes
2answers
2k views

smart contract transaction signature

I have a thought about the smart contract. I would like to know when the smart contract sends a transaction (send ether to someone) did it sign the transaction if yes how it does? does it have a ...
6
votes
2answers
523 views

Issue while trying to verify signature

I am using the following to sign a message var str="Trial with signature"; text=web3.sha3(str); var sig=web3.eth.sign(eth.accounts[0],text); Now after obtaining the hash value from the text and ...
1
vote
1answer
464 views

multi-sig transactions, not on contract-level

Is it possible in Ethereum to issue multi-sig transactions which are not implemented on smart contract level but instead via signing, similar to Bitcoin? The following would be an example of a multi-...
1
vote
2answers
215 views

Wallets that sign transactions using true random numbers

From https://en.wikipedia.org/wiki/Elliptic_Curve_Digital_Signature_Algorithm: Another way ECDSA signature may leak private keys is when 'k' is generated by a faulty random number generator. It ...
2
votes
0answers
117 views

Where in EthereumJ transaction signature is validated?

I am having some troubles with finding code responsible for transaction signature verification in EthereumJ. Does anyone can point me somehow ? I already investigated ethereumj source code but only ...
3
votes
1answer
2k views

What is signing ethereum transaction?

I don't understand at what are there. What is signing Ethereum transaction? What does it mean?
7
votes
1answer
1k views

Demystify Transaction signing process

Can someone explain in layman term, why the transaction needs to be signed and the role of public key, private key in transaction signing process. From what I have read so far: When user creates a ...
7
votes
2answers
4k views

Do I have to unlock my account in geth to call a web3.eth.sign() in JavaScript?

I have: A geth account Access to web3 API I want to: Invoke the function, web3.eth.sign(coinbase, sha) If I put this in a javascript file sign.js, and I call node.js, will it sign my message? Or ...
4
votes
0answers
140 views

how to sign with the Ethereum private key and derive the the r, v, s it needs for verification [duplicate]

I know this kind of questions has been asked before, I want to know the detailed procedure to sign on msgs and derive the r, v, s(the command line), and the client and environment it needs to do the ...
40
votes
6answers
20k views

Create and sign OFFLINE raw transactions?

I'm looking to create a raw transaction, sign it, and broadcast it using the eth.sendRawTransaction RPC method. I would like to do this offline using code or an open-source library OR online but ...
11
votes
1answer
6k views

How can I verify a signature with the web3 javascript API?

Using the javascript web3 API I can create a signature like this: > web3.eth.sign(eth.coinbase, "0xdeadbeef") "...
7
votes
1answer
809 views

Is it possible to sign transactions offline in Mist?

is this planned to be implemented? Would be great to be able to sign transactions securely on an air-gapped machine. I understand that IceBox has offline signing, but they don't support contracts/...
25
votes
1answer
12k views

Ethereum ecrecover signature verification and encryption

The question of signing and verifying signatures with Solidity has been asked in these questions, both of which I have tried to study: How can I sign a piece of data with the private key of an ...
9
votes
2answers
5k views

How does one properly use ecrecover to verify Ethereum signatures?

I've been searching to figure out what I'm doing wrong here, but I've had no luck yet. As far as I can tell, I'm using ecrecover correctly, but I can't seem to get back the signing Ethereum address. ...
4
votes
3answers
1k views

Retrieve the signature of a transaction on the blockchain

How can you find the signature of a transaction? web3.eth.getTransaction() doesn't appear to make that available.
7
votes
1answer
359 views

Can I compress a raw, signed transaction into 140 characters

I would like to basically Make SMS payments of Ether (or bitcoin). The basic Idea I'm thinking about is: 1) Private key signs a transaction on a mobile phone. 2) Raw transaction is 'compressed' ...
21
votes
4answers
13k views

workflow on signing a string with private key, followed by signature verification with public key

I know this question has been asked and answered, but while trying to get everything to work, I've come across some problems. This is what I'm trying to do: 1. take a target string 'Schoolbus' 2. ...
4
votes
0answers
66 views

Possible to sign offline transactions with Geth? [duplicate]

I'd like to set up a cold storage wallet that has the ability to create and sign transactions offline. It seems both Icebox and ethkey has this functionality, but I'd prefer to have the option to ...