New answers tagged

1 vote

account recovery with web3 privateKeyToAccount()

Use 0xfdba67e41f7c6767100969ae3f045d10a59e35d380acf5b37a3b208bd2969347 instead (with a 0x prefix) so web3 knows the format of the private key: web3.eth.accounts.privateKeyToAccount('...
user avatar
4 votes
Accepted

Convert EOA to contract account

The issue is in your assumption that they mean convert an EOA to a contract. Yes, deploying a contract to the same address that you have a private key to would be, practically speaking, impossible. I ...
user avatar
  • 10.9k
0 votes
Accepted

Do private keys map with MAC address for uniqueness? Can my eth private key and address match with another user in polygon network?

No, nothing except a random number is used to generate a private key. There is an extremely small chance that your private key would map to the same address as another private key, and there is also ...
user avatar
  • 170
1 vote

Is my private key exposed while signing some data with metamask?

Signing message does not reveal the private key, only proves the fact that message was signed by the owner the address derived from that key. A bit more on the topic could be found here https://github....
user avatar
  • 81
1 vote

Storage of private key for etherjs app

Storing private keys is always a pain, since you need them in plain text to sign transactions. Take a look at what owasp has to say about storing: Storage Developers must understand where ...
user avatar
1 vote

I am creating random accounts on brownie using accounts.add, are the account address "mine" even in the polygon-testnet?

i am not so clear on the " are the account address mine" part, but if you are using accounts.add() then, according to the docs, you are creating local accounts, meaning that they are stored ...
user avatar
1 vote

How does the sending-private-key scam work?

The funds in the scam wallet are generally stable coins like USDT/ BUSD or the likes of it. To actually do anything on chain, you need the chain coin like ETH or BNB. The scammer scans the wallet all ...
user avatar
  • 74
0 votes

How does the sending-private-key scam work?

How is this scam supposed to work? The scammer hopes you add it to your wallet to try to drain it, and then forget to remove/change it back to your normal account. Then, once you inadvertently add ...
user avatar
  • 136
0 votes
Accepted

What is the simplest way to obtain my ethereum public key, provided that i have the private key?

Figured it out ! thanks to Timur's article and also the ecies and ecdsa libraries here's the python code sample from ecies.utils import generate_eth_key, generate_key from ecies import encrypt, ...
user avatar

Top 50 recent answers are included