Linked Questions

37
votes
3answers
16k 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)?
29
votes
6answers
16k views

ecrecover from Geth and web3.eth.sign

I have tried to use ecrecover() to verify the signature of a message. I have looked at lots of references here and elsewhere, like: https://lab-blog.ey.com/2016/12/19/ecrecover/ How does one ...
27
votes
5answers
9k views

How can I sign a piece of data with the private key of an Ethereum address?

I would like to use the key pair of one of my Ethereum accounts to sign a piece of data. How can this be done?
23
votes
1answer
9k views

How can I verify a cryptographic signature that was produced by an Ethereum address key pair

If I have a cryptographic signature from an Ethereum address key pair, how can I verify that signature?
18
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. ...
7
votes
2answers
855 views

Does Ethereum offer encrypted peer to peer communication applications?

I am wondering if Ethereum can be used for encrypted peer to peer communication like delivering encrypted short messages or encrypted data in bulk between two or multiple parties. Are there any ...
6
votes
1answer
728 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

How to implement cryptographic algorithms in smart contracts?

I need to implement cryptographic algorithms such as AESCCM and elliptic curve algorithms (ECDSA, ECIES) within a smart contract. Is there any implementation of such algorithms in Solidity or Serpent? ...
5
votes
1answer
656 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: ...
4
votes
2answers
461 views

Web3 Javascript API — Transaction Object Not Matching Documentation

Noob question about the Web3 Javascript API. When I use web3.eth.getTransaction(), the object that comes back has some properties that I cannot seem to find in the documentation. For example, here is ...
4
votes
1answer
594 views

How does ecrecover actually work?

I have a basic understanding of elliptic curves, so I'm more interested to find out how does ecrecover specifically verify signatures. It has rather weird requirements, like this prefix thing (excerpt ...
4
votes
0answers
139 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 ...
3
votes
1answer
119 views

Is there a command line like RSA_verify in Ethereum

I want to know if there is command line in Ethereum can do the RSA signature verification that we can directly use
2
votes
1answer
731 views

How to use ecrecover() and what it is?

It’s a simple question, but I couldn’t find an answer. In an ERC20 contract lies this code //The nonce for avoid transfer replay attacks mapping(address => uint256) nonces; . uint256 nonce = ...
0
votes
2answers
367 views

How to call this solidity function with Web3js when executing the contract?

I’m new with ethereum. I’m definitely struggling with the last 4 parameter of this function, so I’m asking the problem directly. mapping(address => uint256) nonces; /* * Proxy transfer token. ...