Questions tagged [public-key]
The public-key tag has no usage guidance.
166
questions
0
votes
0
answers
9
views
How are multiple account addresses derived from a single public key?
The following is an except from Mastering Ethereum, but how you can you have multiple accounts in a wallet like MetaMask that manages a single key pair?
Private key k:
k = ...
2
votes
1
answer
55
views
Convert EOA to contract account
EIP-2026 mentions several ways of creating a new account. One way is by:
(...) converting a non-countract account into a contract account (...)
Is this a hypothetical scenario or could this be done ...
0
votes
1
answer
27
views
What is the simplest way to obtain my ethereum public key, provided that i have the private key? [duplicate]
I have been looking for an easy way to get the public key of my ethereum wallet
From reading a bit on how ethereum wallets work, I understand that a Wallet Address in ethereum is actually derived from ...
0
votes
1
answer
23
views
How are we able to verify signatures using the public key?
I get that:
private key --ECDSA--> public key
private key + message --ECDSA-->signature
But then how do we verify the signature with the public key?
Wouldn't we have to reverse-ECDSA the public ...
0
votes
0
answers
57
views
Getting public and private keys for an ethereum account keyfile and password
I was trying to generate the private and public key of an Ethereum account keyfile(one which gets generated at new account creation) and the password of account.
After I found 1st method, I tried to ...
1
vote
2
answers
54
views
How do the public key recovery methods like secp256k1.RecoverPubkey(msg, sig) recover public key from a transaction signature
For a signature done using a private key, we know that the corresponding public key is needed to verify. When the address is a one way hash function of the public key (which means from the address, it ...
0
votes
1
answer
57
views
What is the relationship between the seed phrase and the private key?
Using ethers, I can easily generate a public key (wallet address), private key, and seed phrase:
function makeWallet(params) {
const wallet = ethers.Wallet.createRandom();
return [wallet....
0
votes
1
answer
164
views
How to recover Ethereum Public Key from Transaction
How can I recover the Ethereum Public Key from a Transaction?
web3.eth.accounts.recoverTransaction("...
1
vote
0
answers
17
views
How to encrypt a message with multiple public keys for multiple recipients
Is it possible to encrypt a message using multiple Ethereum public keys for multiple recipients of a message, e.g. using
https://github.com/pubkey/eth-crypto#encryptwithpublickey
, so that each ...
0
votes
1
answer
99
views
BIP32 Extended Public Key Generate Ethereum Address
BIP32 Extended Public Key How can I generate an address with node js?
Is something like this possible
0
votes
0
answers
74
views
I cannot generate the ECDSA public key from her private key sequentially (printing problem?)
I cannot generate the public keys in sequence.
output :./keysgo.go:33:33: cannot use PrivateKey (type []byte) as type string in argument to Public
Thank you so much for your help
important to keep ...
0
votes
1
answer
58
views
What makes an Ethereum keypair valid?
As I understand Ethereum (and Bitcoin) use the ECDSA algorithm which relies on the secp256k1 curve. The secp256k1 curve is what generates the public keys given a private key.
However, recently, I ...
1
vote
1
answer
288
views
Got different Public keys from same Private key. `eth-crypto`'s `recoverPublicKey()` and MetaMask's `eth_getEncryptionPublicKey`
Update (2022.03.25)
From @Ismael's comment and MetaMask github issue:
The key from MetaMask's eth_getEncryptionPublicKey rpc is NOT the Public Key of my account, but a different key calculated from ...
0
votes
1
answer
91
views
Why my private key is generating different public address?
I'm using that Javascript code to generate three things: private key, public key and public address (last 40 characters from public key):
const EC = require('elliptic').ec;
const ec = new EC('...
0
votes
0
answers
21
views
What if someone changes the public key, which is included in a smart contract to withdraw money
I'm fairly new to blockchain.
I had a question suppose userA has a public key/address.
And there is a smart contract that executes some logic and in the withdraw function it gives some ETH to userA (...
0
votes
1
answer
107
views
Ganache: How to find private keys of an account
How can I find a account's public key. Is it `Account Address`?
0
votes
0
answers
213
views
How can I generate private/public key Tether?
i wanna to generate private/public address from USDT(Tether) for send and recieve that for my website, im coding with Asp.net Core C# language
please step by step help me because im not adult.
Thanks
1
vote
1
answer
183
views
Is it possible to continuously create new wallets until you "create" an already existing wallet?
This question is inspired after reading How are ethereum addresses generated?
This is the section of interest
There are three main steps to get from private -> address:
Create a random private ...
0
votes
0
answers
51
views
Do I need the IV, Ciphertext, and MAC to decrypt a message? Are any of these optional?
This it the encrypted message:
{
iv: '06ec88010977a8867a8851771b0558bd',
ephemPublicKey: '...
0
votes
1
answer
25
views
Is there a mechanism or app or technology to verify user controls public key?
I read somewhere that there is a way for me to verify that a given individual owns a public key. Unfortunately, I don't know where that article was nor what term to search for.
For example, I want to ...
0
votes
1
answer
441
views
Public/Private Key encryption/decryption with wallet
The following case:
There is a dApp in place, connected with a wallet (e.g. Metamask). Wallets usually don't offer public/priate key encryption/decryption.
I want to decrypt a message for the owner of ...
2
votes
2
answers
235
views
I want to get Public key from transaction
I want to get public key from transaction.
For example, TXID : 0x191095343fd26cbb4c58996aa6512d5cdf43281d565072bab8d0d5ea9e3d644e
I have tried "Get Raw Transaction Hex" in etherscan and use ...
0
votes
0
answers
18
views
Easiest way to obtain public key from a mobile wallet
My website wish to identify a user by using their public key in their crypto wallet with the following criteria:
Using Mobile Wallet
not web3, we can do it easily with a web3 wallet
When user visit ...
0
votes
0
answers
51
views
Generating Private and public keys from a given mnemonic and derivation path in javascript
How to generate public and private key if have mnemonic and derivation path. what is the code for it in javascript
0
votes
0
answers
30
views
Is there a list of compiled known ethereum addresses?
Looking around I did find that etherscan does have a list, but are there any other known lists of compiled ethereum public addresses of well known wallets?
0
votes
1
answer
933
views
How to decrypt signed message with web3 and public key
I want to verify my user before the server sends him information.
So I want the user to sign a message using his private key, then the server decrypt that signature to verify the user is indeed the ...
1
vote
1
answer
1k
views
How to verify a signed message and that it hasn't been reused/tampered with?
I have seen this question and others but none answers my qustion.
How can I sign a message and make sure that the public key I recover is actually belongs to the private key that signed the message?
...
0
votes
0
answers
349
views
Why can't we sign a message using a public key and get the private key?
I have just learnt how signing of messages works in ethereum. You take a message, then sign it using a private key to get a signed message. And using the message and the signed message you can get the ...
2
votes
2
answers
69
views
Is it safe to use a signed public address signature as a password
So I am building a email/passwordless register and login function on my website and I want my users to use metamask to do so.
So what I thought of doing was using the user public address, signing that ...
0
votes
2
answers
52
views
Ethereum Wallet access help needed
EDIT:
How can I gain access to Ethereum in the now discontinued Mist wallet ?
I have a 42 characters code which I presume is the wallet number ?
I have the password I used for the wallet.
I have a ...
3
votes
1
answer
1k
views
What is the difference between compressed and uncompressed public key?
I have seen in ethers.js documentation that there is a compressed and uncompressed public key [1] of an Ethereum keypair. Is this compressed public key used only by ethers.js or is it a common ...
0
votes
1
answer
794
views
How get private key from eth address public key/address
By mistake I send "TRU" erc20 token in a ether address and can't access it now. I have only eth address and public key of this address. How to get private key from eth address or using ...
0
votes
1
answer
504
views
Compute address of public key string in Solidity
TL;DR: I need to compute the address from a given public key string in Solidity.
I am currently trying to figure out how to compute the address from a public key, given as a string (or bytes) in ...
1
vote
1
answer
1k
views
Can you get the seed phrase of a HD wallet from the private key of one of the wallets?
Let us say I have a HD wallet. Can I get it’s seed phrase from the private key of one of its wallets?
Also are seed phrases just easy to remember private keys? If so does that mean that from the seed ...
0
votes
0
answers
56
views
BIP Ethereum Key Generation -- Hardened Keys
You may know what the term hardened key is as it relates to the BIP-32 key generation method. If so would explain why the term 'hardened' is used to refer to the numbers which are about 231 through ...
0
votes
0
answers
18
views
MEW, MyCrypto and Public key
Why don't these paper wallets show to me the Public key? Is it a secret?
Can I get a Public key with some wallets? Or I have to generate it with utils.
Where can I use the public key?
Do I need it at ...
1
vote
1
answer
666
views
Retrieve public key of an address to verify off-chain signatures
I have a question regarding use of keys in Ethereum for signing requests/data OUTSIDE of Ethereum.
Let's say I have a regular Ethereum EOA with an address and keypair. I now want to have a piece of ...
0
votes
2
answers
92
views
Quorum: How to find the key used in privateFor
I have a 3 nodes quorum network, which I created with the help of quorum maker. I am adding an new account to my first node, so that my first node now has 2 accounts on it. I want to find the public ...
2
votes
0
answers
150
views
Check whether public address was derived from a private key
I have several ETH accounts (and I own a private key from each one of them). I also have an address with a public key (holding some funds of course) but I totally forgot where this address came from. ...
5
votes
1
answer
437
views
How to convert public key (64 bytes) to compressed public key (33 bytes)
I currently have a generated 64-byte public key that has been recovered from an Ethereum transaction.
How do I convert this key into a 33-byte compressed public-key? The problem I'm having seems ...
0
votes
2
answers
1k
views
Where to report scammer Ether wallet addresses?
Bitcoinabuse.com is where we can report scammer addresses for Bitcoin wallets. What is the equivalent for Ether scammer addresses?
0
votes
0
answers
94
views
Please help to detect ETHEREUM JSON key file
Time: 2014 year.
I have next key:
{"public_key":"02f6197ef15d989898b11c6c0axxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "data":"...
1
vote
0
answers
264
views
Ethereum account for HD Wallet key generated with xpub key only using bitcoinj
Accordingly to the BIP32/BIP44 specification recommendations I generating HD Wallet addresses using bitcoinj library (DeterministicKey instances) with the path like M/44'/60'/0'/0/0 using xpub key ...
1
vote
1
answer
1k
views
Can we decrypt a message by using private key through Metamask
Say I have a hash of a file which is stored on IPFS.I want to encrypt the hash with public keys of few people.
How can I do the encryption of the hash (encrypted hash should be stored on smart ...
1
vote
1
answer
10k
views
I have my public key and seed phrase, but private key is lost (MetaMask)
I lost access to a specific address generated in MetaMask web wallet, I still have the public address and my seed phrase. Re-creating my account using the same seed in MetaMask isn't showing that ...
0
votes
1
answer
192
views
Trezor - How to see the balance on a particular address?
Trezor uses MEW or MyCrypto to display the balance of my Ethereum accounts.
However, I cannot enter a particular address and have the website search for that wallet in my HD derivation path.
I know ...
0
votes
1
answer
96
views
EthereumJS returning wrong public key
I'm using https://iancoleman.io/bip39/#english to generate a random 12 word mneumonic with the following settings.
Mneumonic language: English
Coin: Ethereum
Derivation Path: BIP44
It generated the ...
0
votes
1
answer
300
views
Why HD wallet instance returns two xpub-xpriv key pairs inside Root and HDKey?
I have implemented address generation using HDWallet as shown in the snippet below:
let Seed = generateMnemonic();
const wallet = EthHdWallet.fromMnemonic(Seed);
console.log("Wallet" + JSON....
2
votes
1
answer
3k
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 ...
2
votes
2
answers
1k
views
Is there any difference between address that have Smart Contract and "normal" one? [duplicate]
Is there any difference between address that have smart contract on it, and "normal" address (address that You can create private and public key pair)?
For more context, this is the problem I'm ...