Questions tagged [private-key]
in assymetric cryptography, the private key is used to unlock, sign or decrypt
441
questions
1
vote
0
answers
22
views
how to get 'z' in ECDSA?
There are 2 nice articles about ECDSA of getting private key by the same 'r'. I dont know how to get the 'z'. Can u describe in detail and give an example?first article
second article
0
votes
1
answer
18
views
creating multiple eth keys from one private key [duplicate]
I want to create multiple Eth public Keys from one private Key like exchange hot wallet
0
votes
1
answer
38
views
What is the format of the private key required to deploy using deploy-zksync?
I am trying to deploy a very basic smart contract using zkSync. This is the code, from they docs:
deploy.ts
import { Wallet, utils } from "zksync-web3";
import * as ethers from "ethers&...
1
vote
0
answers
36
views
How to quickly get private keys from mnemonic phrases
I need to get private keys (ethereum/bitcoin and other currencies) from mnemonic phrases as fast as possible. At the moment I am using BitcoinJ library:
Set<BigInteger> privateKeys = new HashSet&...
0
votes
0
answers
24
views
retrieve private key from v4 keystore with password
I've got a keystore file from when I staked 2 years ago. I have the password and the keystore tests as valid, but I'm trying to get the privatekey/mnemonic back out of it. All the material I see for ...
0
votes
1
answer
43
views
What is the best way to store the private key to sign transactions on web3js
So I have a web3js script(bot), something along these lines:
let walletAddress = ""
let pvtKey = ""
signed = await web3.eth.accounts.signTransaction(txObject, pvtKey);
What is ...
0
votes
2
answers
57
views
How can someone verify that the deployer of a smart contract does not hold a matching private key?
Smart contracts don't have private keys. But there exists a private key matching their public key/address in the sense that their public key is derived from a key pair generation mechanism.
How can I ...
0
votes
0
answers
46
views
Get Private key from UUID of old eth Wallet
I have a UUID generated by the eth-cli (2016).
Is it possible to generate the private key from this UUID, or does the UUID get generated from the private key?
If it works from UUID to private key, how ...
0
votes
1
answer
23
views
Why would Ethereum forks chose different Bip39 Derivation paths derivation path than ethereum?
Just wondering why Ethereum forks like Ethereum Classic or others would chose a different derivation path than Ethereum? Having the same derivation path would guaranty greater support as it would be ...
0
votes
1
answer
26
views
Can ECDSA keys hashing to a contract address be used to sign a transaction?
Theoretical question: say I randomly managed to get a private key that provides a pubic key that hashes to and address that happens to be already in use for a contract instead of being an EOA.
Does ...
0
votes
1
answer
82
views
Hardhat Tasks - How to import an account with a private key as signer
I am writing a Hardhat task. Hardhat ethers provides ethers.getSigners()which returns me the addresses derived from the mnemonics saved in process.env.
However, I want to use an account address, of ...
0
votes
0
answers
16
views
Is there a hardware wallet solution which allows importing existing private keys?
I would like to avoid storing private keys for signing messages and transactions on my computer. The logical solution would be a hardware wallet like Trezor or Ledger.
The problem is, I was unable to ...
2
votes
1
answer
110
views
Can one wallet address have multiple private keys?
On the forum there were some threads about people creating multiple public keys from one private key. I am wondering if the reverse is possible as well. Can 2 private keys create 1 public key. I am ...
0
votes
0
answers
15
views
What is the best way to store master private keys and mnemonic in an HD Wallet implementation?
I have to implement HD Wallet and issue a deposit address to the user.
Is there a best practice for storing master private keys and mnemonic?
I would appreciate it if you could also tell me how to ...
0
votes
1
answer
41
views
Why i am getting different public key values from same private key?
I have been exploring ethereum-cryptography library to build HD wallet features for my demo application. I have used HDkey library to generate master private key from master seed.
The code is below ...
-1
votes
1
answer
307
views
Can you use multiple seed phrases on a Ledger Nano hardware wallet?
When you're shipped a Leger Nano hardware wallet, you generate that device's native seed phrase (private key) upon opening the device.
Can you additionally recover an existing seed phrase on the ...
1
vote
1
answer
149
views
Why I can't import private key to metamask?
I'm new. Sorry for the question. Please, help me to understand why I can't import a similar private key to metamask:
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE8AF48A04CBFD47E8CB0366361 how I can fix this?...
0
votes
0
answers
173
views
ECDSA Nonce reuse attack
so I recently stumbled upon this video by @bertcmiller who created two transactions with the same nonce "k". That seen I researched quite a lot of pages explaining how to recover the private ...
0
votes
1
answer
15
views
Alphabets in x , y coordinates of Elliptic graph
I was reading about the ethereum address generation process. I am very confused that when Private key generated is processed under "Elliptic Curve Digital Signature Algorithm" , we get a ...
0
votes
1
answer
34
views
Receiving payments from my clients on a website, and when each user is given his own address
I want to receive crypto-payments from my clients in such a way that they'll be able to send them to an address directly and from any type wallet they may have. Namely, I don't want to have them sign ...
0
votes
0
answers
18
views
How can I store my private key safely in browser? How do different wallet website store the private key?
I am building a web app, where I need user private key to be stored safely in the browser and I want to do something with that private key in my React component.
How can I store it safely? Should I ...
0
votes
0
answers
20
views
The concept of wallet, private and public key encryption in private blockchain
I understand that in public blockchain implementation like Bitcoin, ETH, ... the encryption method of public and private key is crucial for secure transaction. But is this concept required for a ...
0
votes
0
answers
34
views
Crypto Exchange Account Model (HD Wallet?)
There are some crypto networks such as Bitcoin, Ethereum, TRON, Solana, etc.
To develop a crypto exchange, it is a good idea to have a private key for each network, and generate an address (for ...
0
votes
1
answer
189
views
How to send tokens to a wallet without exposing your Private Key (ethers.js)?
Intro: I am trying to create a web app where I can send some tokens from my personal account to another. I found out a possible way to achieve my goal using ethers.js in the following way:
// connect ...
0
votes
1
answer
71
views
How to store private key on a VPS in a secure manner?
I have a service which will interract with my smart contract which will include money transfer. For this reason, a private key of the owner or deployer of a smart contract will have to be store on a ...
1
vote
0
answers
23
views
How to correctly get PubKey from PrivateKey in Python
I'm trying to master the basics of cryptography behind ethereum etc, mean very basics. trying to calculate the Pub Key via basic Pub = Priv * Generator Poing G in python, so basically
from ecdsa....
0
votes
1
answer
88
views
How secure and trusted Web3Auth is?
So my question is about the to which degree Web3Auth is trusted? I played around with their SDK a bit, and after user logs into the DApp, the application can even retrieve user's private key and ...
1
vote
2
answers
42
views
how does one secure one's key when writing an oracle?
I'm looking to write an oracle that will interact with the blockchain in the following way.
Client submit a withdrawal request on the contract
The Oracle will pick up that request, check the balance ...
0
votes
1
answer
108
views
Package Multiple Transactions Together to Scam a Scammer
The Scam: Put 20 USDT in an account, give someone the private key (or seed phrase.) When they transfer gas in, immediately transfer it out to your wallet. I assume there is a bot running to make the ...
1
vote
1
answer
67
views
How to export my private key from MyCrypto
I'm using MyCrypto (an Ethereum and EVM-based software wallet). I created a new wallet with 12-word mnemonic phrase. I wrote down the words and started using the wallet.
I need to get the private key ...
1
vote
1
answer
68
views
How to prove that a certain payment has been made by a certain user?
I have a website in the beta stage, on which users will be able to pay by crypto. Out of simplicity and for now, I want to use a single address and verify the payments manually because there won't be ...
1
vote
1
answer
63
views
Cannot generate Ethereum address from private key
I am trying to use the Bitcoin ECDSA Library to generate an Ethereum address from a private key. I took the private key from my Metamask wallet then used the following code to generate the public key.
...
1
vote
1
answer
425
views
Call a smart contract function with web3py using private key
I'm trying to call a smart contract function using web3py; the idea is to mint a token using a wallets private key. I've done it before in web3.js but I'm not sure how to move forward with web3py.
I'm ...
2
votes
1
answer
28
views
If I approve a malicious contract with 1 address does it compromise other addresses derived from the same private key?
I am a little bit worried about NFT scams.
My NFT wallet address is derived from the same private key that my ETH cold storage address. I am using a Ledger Hardware wallet.
My question is:
If I ...
0
votes
0
answers
125
views
Questions about mnemonic phrase and private key
I have just learned that the private key of each wallet can be derived from the same mnemonic phrase, so there can be multiple private keys derived from the same phrase. Let's say I have generated two ...
1
vote
0
answers
99
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 = ...
3
votes
2
answers
234
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 ...
2
votes
0
answers
91
views
A library for converting general cryptocurrency's private key to address
Is there a library on npm to convert a given private key and cryptocurrency's name to an address? E.g. Tron and Ethereum give different addresses when using the same private key:
let addrEthereum = '...
0
votes
1
answer
113
views
Do private keys map with MAC address for uniqueness? Can my eth private key and address match with another user in polygon network?
I learned that addresses are generated like this: privatekey->publickey->address.
so, the uniqueness of the address depends on the uniqueness of private key. And private key is just a random ...
0
votes
1
answer
433
views
Is my private key exposed while signing some data with metamask?
My friend's metamask account was hacked and earlier he signed a message on a malicious site, so I wanted to know if there's any way how someone can get your private key this way. And if there's a way ...
4
votes
1
answer
545
views
Storage of private key for etherjs app
first post here
I wanted to develop an app to automate transactions with etherjs
My question is about this part of the code:
let walletWithProvider = new ethers.Wallet(privateKey, provider);
Where, ...
0
votes
1
answer
395
views
I am creating random accounts on brownie using accounts.add, are the account address "mine" even in the polygon-testnet?
I am creating random accounts on brownie using accounts.add, are the account address "mine" even in the polygon-testnet? if so, how does brownie know that address is a new address. Also how ...
1
vote
2
answers
198
views
How does the sending-private-key scam work?
I often receive spam messages of the form of an individual who claims some position of relative ignorance (e.g. being a student) and to have received some moderately large sum of money on-chain but ...
0
votes
1
answer
199
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 ...
4
votes
2
answers
1k
views
Creating Ethereum private key from a string
I have a simple string, for example test - and I need to convert it to Ethereum private key 9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08
What is an algorithm? Which functions ...
0
votes
1
answer
42
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
146
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 ...
0
votes
1
answer
166
views
Lost my Private key but ı have keystore
I have mew v2 json file. I want to convert this file to v3 utc via geth but I am getting an error, what should I do? i get the same error on windows 10 and linux (kali and ubuntu)
Geth Error:
Fatal: ...
0
votes
0
answers
86
views
What are the odds I punch in 12 random words from the wordlist and randomly get a wallet hash?
If someone just randomly punches in 12 random valid words from the 2048 wordlist, what are the odds that the generated key is a valid one and that it could belong to someone?
I have tried looking this ...
0
votes
1
answer
422
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....