Questions tagged [public-key]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
6 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
0answers
12 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
0answers
19 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
1answer
99 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 ...
0
votes
1answer
46 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
0answers
77 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
2answers
38 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
2answers
43 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 ...
2
votes
1answer
303 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
1answer
133 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
0answers
32 views

Retrieving the prefix 0x02 or 0x03 of the public key from the uncompressed form

I use this code to generate a public key but it provide the uncompressed form. So it doesn't provide the first part that is either 0x02 or 0x03. I tried addHexPrefix() from  ethereumjs-util but it ...
0
votes
0answers
17 views

Remix: How can I access the public key of the accounts generated?

I need to try something within remix.ethereum.org for which I need access to the public key of the account sending a transaction. Using remix with the "javascript vm" setting which generates ...
0
votes
1answer
125 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
1answer
416 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
0answers
34 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
0answers
14 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
1answer
166 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
2answers
28 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 ...
0
votes
0answers
14 views

Is it possible to derive multiple public addresses for a smart contract to receive ERC-20 tokens?

I have a smart contract that deposits user's fund in the AAVE lending pool on behalf of users: lendingPool.deposit(stableCoinAddress, amount, address(this), 0) Users can deposit at different times ...
0
votes
0answers
100 views

Is there any method to generate new public private key pair in solidity?

I want to generate a new ethereum account in solidity(if possible in online Ide remix) & sign transactions with the private key. In other words, I want more ethereum account apart from the default ...
2
votes
0answers
67 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. ...
4
votes
1answer
94 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
2answers
472 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
0answers
45 views

Please help to detect ETHEREUM JSON key file

Time: 2014 year. I have next key: {"public_key":"02f6197ef15d989898b11c6c0axxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "data":"...
1
vote
0answers
102 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 ...
0
votes
0answers
30 views

What is a better way to use whisper to implement a chat room?

I want to use whisper to implement a chat room in my dapp. I learned about whisper, if you want to realize the function of private chat, you need to know the public key of other people. For a user who ...
0
votes
0answers
9 views

Will Ethereum generate the same private key? [duplicate]

We know that Ethereum first generates a 256-bit private key, and then generates a 160-bit address on the basis of this private key. So in theory, it is possible for Ethereum to generate the same ...
0
votes
0answers
27 views

Which blockchains use the same addressing as Ethereum?

Which blockchains use the same addressing as Ethereum? I find this blockchains: Smart chain BNB ETC VeChain VET GoChain GO POA Network Callisto Wanchain TomoChain Thunder Theta Minter (without MX) ...
1
vote
1answer
666 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 ...
0
votes
1answer
7k 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
1answer
143 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
1answer
71 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
1answer
195 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....
1
vote
1answer
960 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
2answers
582 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 ...
1
vote
0answers
35 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', '...
2
votes
1answer
116 views

how do I create an ethereum valid key pair in nodeJS?

I need to generate a key pair that can be used to write the a besu (ethereum) private ledger. I wrote the following code but the architect says this will probably not work with ethereum. The ...
0
votes
1answer
360 views

Proper way to save a public key as bytes in a contract

I need to save public keys in many contracts. Despite that this choice costs, I store them as bytes (I know that the best way is to split the key and store it to different bytes32 constants, but that ...
2
votes
1answer
251 views

secp256k1 library does not create correct public key

I am trying to get public key from private key using secp256k1 library. https://github.com/bitcoin-core/secp256k1 I set same private key(sk) in here. https://github.com/ethereumbook/ethereumbook/blob/...
0
votes
1answer
135 views

How to parse ecrecover parameters?

I am looking into getting the public key from ANY ethereum address (not owned by me) that has sent a transaction at least once. It seems that the most viable solution here would be to use ethereumjs-...
0
votes
1answer
638 views

How can I encrypt a file using an ethereum public address and decrypt it with the private address?

The expected outcome is very simple: Users will send their ERC20s to a smart contract. Depending on the amount, each user will get a file specifically created for them. I want to distribute that ...
1
vote
1answer
109 views

Are there identifiers for smart contracts?

Say I want to reference another smart contract in my smart contract. Do smart contracts have an identifier (like a number 0xjdjdjdjdjjddj etc.)? And if they don't, how would you reference a ...
3
votes
1answer
828 views

Generate Ethereum address with private key

How can I generate ethereum account address and private key that works on ethereum main network using web3 in nodejs?
0
votes
1answer
175 views

In bitcoin it's bad to reuse addresses (less security, as public key has already been revealed), how about ethereum? [duplicate]

In bitcoin it's bad to reuse addresses (less security, as public key has already been revealed), how about ethereum? Is the public key revealed when the first transaction (first nonce) is used?
0
votes
1answer
499 views

how to send transaction from different account in metamask

I have two accounts in metamask, when I called the function, web3 always used my default account in the metamask, I want to send transaction to the smart contract I deployed with another account, so ...
1
vote
0answers
54 views

Why a buffer is required in the process of creating keys from the seed

This hdkey library is creating a Buffer in the process of creating keys as an example. var HDKey = require('hdkey') var seed = '...
1
vote
1answer
404 views

Convert 64 byte public key to 20 byte address in Solidity

I am trying to convert a 128 characters hex encoded public key to an address in Solidity (0.5). For example the pubkey would be: ...
4
votes
2answers
582 views

How to encrypt a file with multiple public address?

Can I encrypt a file with multiple public address such that each of them can decrypt the file using their private keys? Thus achieving a system to securely store file on IPFS which can be accessed by ...
0
votes
1answer
47 views

Assymetric encryption with only address

I would like to send an encrypted message to an address, without knowing their public key. If I understand ECIES correctly, in order to send an encrypted ECIES message to a party, say Bob, I need to ...
1
vote
0answers
130 views

How to know address belongs to current Ledger, way to get path ? (By using Ledger inside browser - JavaScript)

Ledger can generate many wallet addresses, Is there way how to find out that given public key address belongs to currently connected Ledger device ? (Using JavaScript API in web application) And ...