Linked Questions

1 vote
0 answers
2k views

how to get public key from metamask? [duplicate]

I'm creating a dapp. and I need my users on my website to provide public keys. As I am lazy to write a script which generates public/private keys automatically, I want to suggest an idea that they use ...
Chemistry's user avatar
  • 361
1 vote
0 answers
79 views

Recover public key from message and signature [duplicate]

I try to recover a public key (not an address) from a message and a signature. I have the following message: def offer_hash(msg, nonce): types = ['bytes', 'bytes', '...
Vourhey's user avatar
  • 21
159 votes
6 answers
122k views

How are ethereum addresses generated?

What criteria does a valid Ethereum address need to fulfill, is it just a random number in hexadecimal? Or does it need to be derived in a specific way, according to some cryptographic algorithms? ...
max's user avatar
  • 2,304
38 votes
2 answers
19k 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 ...
pubkey's user avatar
  • 1,157
46 votes
1 answer
39k 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 ...
jiebang's user avatar
  • 993
30 votes
3 answers
4k views

Is Ethereum secure against an attack by quantum computers?

Does Ethereum implement Post-quantum cryptography? Or will the network break once a malicious actor gains control of an effective quantum computer?
Shelvacu's user avatar
  • 1,405
36 votes
2 answers
17k 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 ...
arik's user avatar
  • 503
21 votes
2 answers
8k views

Is it safe to reuse Ether addresses?

I believe it's viewed as unsafe in Bitcoin because of the way transactions are signed. Is this also true for Ether addresses?
clewisjr1's user avatar
  • 261
17 votes
1 answer
8k 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 ...
Ajoy Bhatia's user avatar
  • 1,446
4 votes
1 answer
3k views

Encrypting/Decrypting data on IPFS using Ethereum Public/Private key?

I would like my app to connect to a Web3 wallet, store encrypted data on IPFS, then retrieve that data and decrypt it (without the user exposing their private key to my app). Is this possible? If not, ...
FromTheAshes's user avatar
4 votes
1 answer
11k views

Is there a way to get public key using web3.js?

I know there are ways to get public key from private key using other then web3js tools (EthereumJS: How to get public key from private key and https://kobl.one/blog/create-full-ethereum-keypair-and-...
user652061's user avatar
3 votes
3 answers
2k views

How to recover public from tx signature(r,s) and verify signature?

My first question is how to verify signature using only r,s and elliptic curve paramete, and an address (which is hashed of public key, so cannot retrieve public key from the address)? Next question ...
Kronos's user avatar
  • 896
0 votes
1 answer
6k views

Is it possible to derive public key from ETH address?

Goal (not asking XY question): send ETH to an address web3.js script monitoring it and acting upon transaction if msg.value > 0.1 ether then... ...encrypt a file with the public key of the msg....
Mars Robertson's user avatar
5 votes
1 answer
2k views

Extracting Public key from signed Ethereum message or transaction in JavaScript

I'm trying to find out how to derive a public key (not the address) of an Ethereum account by using ethereumjs-util's ecrecover method. Basically I get a transaction by hash using Web3, convert r, s ...
Henk's user avatar
  • 4,256
4 votes
2 answers
964 views

Quorum Private Transactions: Why public key instead of address?

Out of a combination of curiosity and frustration, I'm trying to figure out why Quorum requires a node's public key when using "privateFor". Wouldn't it be easier to use addresses? I am wondering if ...
mkay's user avatar
  • 43

15 30 50 per page