Questions tagged [public-key]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
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)?
61
votes
8answers
45k views

How can I check if an Ethereum address is valid?

I've read many times that you should never input an address by hand unless you want to accidentally send Ether into no-mans-land. I'd like to know what those checksums might be. Is there a way to tell ...
28
votes
2answers
10k views

How to encrypt a message with the public-key of an Ethereum address

I am writing some code in nodejs/browser. I have successfully created ethereum-addresses with the secp256k1-library. I was also able to sign and verify messages. Now I want to encrypt/decrypt a ...
12
votes
4answers
18k views

Ethereum Address vs Public Key

I'm creating an ethereum wallet and I'm a bit confused with the concept of public key vs address. I understand that the Address is a hashed version of the public key, but when I'm generating a new ...
14
votes
1answer
6k views

Location of public and private keys of Ethereum account

I want to know the details about key generation and handling in Parity. The questions listed are all related, so I put them all in this one question post. When a new Ethereum account is created on ...
16
votes
1answer
9k views

EthereumJS: How to get public key from private key

I am trying to create a private key and its corresponding public key using EthereumJS library. So far so good I've been able to create private keys using keythereum.create() method. Nevertheless I ...
4
votes
2answers
3k views

Generating Ethereum Private Key,Public Key On Mobile (Android/Java)

I'm looking for a way to generate Ethereum private keys and public keys inside an Android app. I've scavenged the web and ultimately decided to tear apart the code to myetherwallet and import the same ...
6
votes
1answer
2k views

Get public key of msg.sender in a smart contract

How can I get the public key of msg.sender from inside the smart contract? function getPublicKey() returns (string publicKey) {} From Solidity docs, ecrecover returns an address: ecrecover(bytes32 ...
5
votes
3answers
1k views

Get address from public key in Solidity

The address is the last 20 bytes of sha3(publicKey) In Solidity, using assembly if needed, how could I splice the first 12 bytes from sha3(publicKey) and get the address? What I came up with runs out ...
6
votes
1answer
789 views

Why doesn't my private key's public key generate the correct public address?

Private Key: 9ccbcabf23e271183dbed503b43277f4c6eee9ac918cd6cda75ebb73ceb35c7d Corresponding Public Address: 0xa73Fb234B1773ed7b115D18A1f0a15579bA2C1e1 (check for yourself on MyCrypto, for example) ...
2
votes
2answers
5k views

How to derive address from private key? [duplicate]

I want to give users a private key so they can Easily get address.. Why? So a single series of digits enables them to have both public address and private key. Of course this is for temporary use ...
4
votes
1answer
341 views

Verifying Bicoin signed message in Ethereum smart contract

I'd like to explore the option to verify the messages that have been signed in Bitcoin wallets in Ethereum smart contracts. Ethereum smart contract is given a list of Bitcoin addresses Ethereum smart ...
2
votes
3answers
3k views

How to generate multiple eth-addresses from one private key? [duplicate]

Is it possible to generate different multiple eth-addresses from one private key? The goal is to implement a JavaScript service that will allow a user to buy a subscription using cryptocurrency. ...
6
votes
1answer
2k views

Does ethereum support something like bip32 extended public key?

Bitcoin and Litecoin have something called XPUB key or Extended Public Key that essentially allows to track all generated public addresses, so think monitor your total balance in one key. I was ...
3
votes
1answer
739 views

web3py: get public key from private key (without prior transaction)

Is there a way to get the public key from a private key with web3.py? I know I could get it by checking a transaction signed by that key but that's not working for me in this example. It should be ...
1
vote
2answers
267 views

Running 'parity account new' - is the generated account suitable for all networks (mainnet, ropsten, kovan, etc)?

From a command line, I run parity account new. I am then asked to enter a password (twice), and an account-address is printed. In addition to that, a JSON file is created. Finally, I use this ...
1
vote
5answers
438 views

Can I easily generate a public address which has no private key?

I might be wrong in some of the facts that I state here, so please correct me if necessary. My understanding: Private key - 256 bits Public key - 256 bits Public address - the last 160 bits of a ...
1
vote
1answer
61 views

ethers.js Recover public key from contract deployment via v,r,s values

I'm currently trying to get the public key of the user that deploys a contract. Unfortunately I can't make it work. I am trying to achieve this solely by using ethers.js as I don't want to bloat my ...
0
votes
1answer
195 views

Creating an offline address creator for Ethereum

I found this Bitcoin Paper Wallet: https://bitcoinpaperwallet.com/bitcoinpaperwallet/generate-wallet.html I would like to add it Ethereum just for fun. On this question, they show how to create ...