Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

Questions tagged [private-key]

in assymetric cryptography, the private key is used to unlock, sign or decrypt

Filter by
Sorted by
Tagged with
0 votes
2 answers
16 views

where does popular bridges keeps their private key in backend in dapps?

I have an interesting question, that major players of bridges and other dapps, where do they store their private keys at their backend? I mean what flow do they decide so that only owner of that ...
Manav Notnani's user avatar
2 votes
1 answer
48 views

Can a user impersonate a smart contract address - and use it as an EOA?

First of all: I'm aware of the fact that only EOAs sign/create txs in Ethereum, that the public address of an EOA and the address of a Smart Contract are calculated differently and that it's ...
Iaroslav's user avatar
  • 365
0 votes
1 answer
33 views

How to accessing Smart Contract write function from the frontend (React Js ) without any private key?

Currently, when I try to write a function on Solidity Smart Contract from ReactJS, it is not working and throws an error called "unknown account." for the below code. await contractMethods....
AIT DEV's user avatar
  • 15
0 votes
1 answer
13 views

Someone got access to my private key and moved the funds, how can I track my account activity?

Is there a way where I can check my account logs?
Chaosknight's user avatar
0 votes
1 answer
23 views

Trying to create a dApp where transactions are signed by a default wallet

I am making a casino for a client and I want all data of amount won by a user to be sent to my contract. The gas for each of these "data sending transactions" will be approved by the client'...
Risavdeb Patra's user avatar
0 votes
1 answer
101 views

How can I get a private key from a mnemonic phrase? in python or other [duplicate]

I have a mnemonic phrase for my wallet. I want to use it in Python. Is there a way to I get a private key from a mnemonic phrase? I want to get litecoin wallet's private key
omsseung's user avatar
0 votes
0 answers
17 views

How can Transfer ETH with Privatekey? [duplicate]

can you give me some examples of how I can send ETH from wallet A to wallet B? I have a 64 digit private key. Preferably a script that works so that I can slowly familiarize myself with it. I'm ...
Max Peters's user avatar
0 votes
1 answer
33 views

getPublicKey is not a function

I'm trying to generate public key from private key using secp256k1, but I'm getting error saying: getPublicKey is not a function const { getPublicKey, ecdsaSign } = require("ethereum-cryptography/...
That Web3 Guy's user avatar
0 votes
1 answer
181 views

Subject: Facing "TypeError: invalid private key" during deployment

Description: I'm encountering an issue while attempting to deploy a contract using ethers.js. The error message I'm receiving is as follows: Error: TypeError: invalid private key (argument="...
Amine Merad's user avatar
2 votes
0 answers
52 views

Withdrawing ETH from a Locked-out Account - Need Help!

I have some ETH on LocalCryptos.com (now shut down), but unfortunately, I have lost my access to the 2FA code, though I do have the password and a wallet backup file in JSON format. I managed to ...
Tayyab's user avatar
  • 21
1 vote
2 answers
247 views

How to Encrypt the Private Key in a Keystore file in Foundry

cast wallet import your-account-name --interactive Enter private key: Enter password: `your-account-name` keystore was saved successfully. Address: address-corresponding-to-private-key This was ...
allwin199's user avatar
1 vote
2 answers
104 views

Sign a transaction without loading full private key

It is possible to sign a transaction by doing: from eth_account import Account import web3 as Web3 web3 = Web3() my_private_key = Account.from_key('0x...') signed = web3.eth.account.sign_transaction(...
Ryan's user avatar
  • 92
1 vote
0 answers
24 views

can a private key have 2 public keys? [duplicate]

The deployment script for a contract has the following logic. Take private key from database -> Create an account using Web3.eth.accounts.create() -> set the account as Admin in database -> ...
Valli Nayaki's user avatar
0 votes
2 answers
340 views

Convert a private key to a .pem file

How can I convert a private key to a .pem file to upload it to AWS KMS?
Falcon Stakepool's user avatar
0 votes
1 answer
184 views

How to import an existing private key into AWS KMS?

Is there a way to import into AWS Key Management Service an already existing private key so I can sign transactions with that wallet? I have found some tutorials online (like this one: https://www....
Falcon Stakepool's user avatar
0 votes
0 answers
25 views

What is the private keys and wallet [duplicate]

{ "type": "private-key", "version": 3, "crypto": { "ciphertext": "513b4f7565bc1d655bc1789f486f66c812e5af97a0b297167f083567c913f488"...
Shugar Yum's user avatar
0 votes
0 answers
239 views

How to know in a deterministic way if a specifc address is vulnerable to the profanity hack?

Context : My private key just got stolen. The thieve sent to me a message starting by ”nice payment for your work„ on https://chat.blockscan.com along an e‑mail from [email protected] revealing a ...
user2284570's user avatar
  • 1,018
0 votes
1 answer
83 views

A special private key that can be used to make a TX to a certain wallet ONLY

I want to be able to archive this: a private key or its substitute (P) of a user wallet is stored on a server there're 100s of user wallets there, hence 100s of (P) too server isn't a safe ...
nicholas.fowler's user avatar
0 votes
2 answers
33 views

What ways are there to prevent frontrunning on published private keys?

Since once a private key is public knowledge, anyone can sign with them, and there are plenty of bots prepared to drain funds added to exposed accounts. My question is, what ways are there to ...
Zommuter's user avatar
  • 113
0 votes
0 answers
136 views

Generating Ethereum Address from Mnemonic Seed Phrase in Java

I hope you're doing well. I have a question related to Ethereum address generation in Java. I'm currently working on a project and I need to generate an Ethereum address using a mnemonic seed phrase. ...
Abdul Moiz's user avatar
0 votes
1 answer
27 views

Is it possible to trigger send transaction from NodeJs server for safe wallet without owner private key and owner get the notification for signing

I want to create a NodeJs server and use the safe sdk wallet to create the safe Instance and initiate the transaction from it, and then send the notification to all owners so that they can sign the ...
rizwan ahmad's user avatar
0 votes
1 answer
125 views

How to generate a valid Private Key using CLI?

I am trying to create a private key which is valid and can be used for production work. What tool should I use to create a Valid Private key on my system using Terminal/CLI?
Megabyte's user avatar
2 votes
1 answer
402 views

Deriving an address from a private key programmatically

I'm stuck between a rock and a hard place right now. I'm developing an app with react native, and users need to be able to import their wallets via their private keys (and hopefully mnemonic phrases) ...
Morgandril's user avatar
0 votes
0 answers
32 views

What happens to ECDSA public key if a constant is added to private key?

Consider I have a random number on curve Secp256k1 as the private key. I know if I calculate G multiplied by the private key in EC domain, I get the public key. I am wondering what happens to public ...
MJay's user avatar
  • 140
1 vote
0 answers
52 views

What kind of malicious activity could an RPC gateway inflict on the user?

Let's say, a third-party RPC gateway for an Ethereum-like networks decided to turn itself into a malicious one. Apart from the likes of selling users' data, what kind of malicious activity could it ...
Kyell's user avatar
  • 91
0 votes
1 answer
105 views

Is private key sent out at any ocassion in a request to any RPC?

Do I understand correnctly that no RPC whether it be the standard Ethereum full node, or an RPC/REST API gateway, require a private key to be sent to it in the pure text? A private key is only used to ...
Kyell's user avatar
  • 91
0 votes
1 answer
44 views

Custom digital signature of a wallet

I would like to get a custom signature from a wallet. What I mean is, according to EIP-712 the signature algorithm used in Ethereum is kekkac256; I would like instead to use a custom signature ...
Mattia Monari's user avatar
3 votes
0 answers
38 views

Is there a library to sign transactions using a cold wallet?

I have a Ledger Nano S I want to use for signing transactions on a server. Is it possible to use a library to do this every time without the need of someone manipulating the hardware wallet but ...
Falcon Stakepool's user avatar
0 votes
1 answer
36 views

how blockchain verify private keys, I am sure nodes does not store private key, so how private key is validated?

it's the doubts lie in the very core concept, but I wanna know how the nodes know that the private+public key is right.
aakash4dev's user avatar
1 vote
1 answer
154 views

Use private key to encode your own public address

Let's say I use a wallet's private key to encode/digitally sign it's own public address, meaning that upon using its public address to decrypt that encoded/signed data, the result would be the public ...
user2340939's user avatar
2 votes
1 answer
193 views

Can I use a BLS12-381 private key to sign Ethereum transactions?

I'm new to cryptography and I've recently been studying BLS signatures. Please forgive me if I make any mistakes while writing. I've tried generating a BLS key pair and using the private key to derive ...
pgermani's user avatar
1 vote
1 answer
28 views

sending a method on nodejs with admin account

I want to send a method from the owner's account to which I have the private key. I tried adding the private key int he red rectangle but when I run it I get this error:
Djillali SE's user avatar
3 votes
1 answer
916 views

How do you calculate a privatekey/public key from an xprv/pbub?

I am trying to understand how HD wallets work in Ethereum. Currently I have managed to generate a child extended private and public key (xpub and xpriv) from my BIP32 Root Key. However, I can't find ...
Jean Claude Dusse's user avatar
5 votes
1 answer
394 views

Now that eth_decrypt and eth_getEncryptionPublicKey are deprecated, is there a good way to encrypt and decrypt data via a user's private key?

The project I'm trying to make has this flow: User inputs some data It gets encrypted using their private key It gets stored to a place which is accessible to anyone but only the person in possession ...
AweSamarth's user avatar
1 vote
0 answers
40 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
LEVI_104's user avatar
0 votes
1 answer
89 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
Oswald's user avatar
  • 1
0 votes
1 answer
369 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&...
Falcon Stakepool's user avatar
1 vote
0 answers
383 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&...
Cosmo773's user avatar
0 votes
1 answer
347 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 ...
Jonh Snow's user avatar
0 votes
2 answers
115 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 ...
fallen_angel's user avatar
0 votes
0 answers
172 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 ...
Tidoni's user avatar
  • 101
0 votes
1 answer
38 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 ...
Kevin Wad's user avatar
  • 327
0 votes
1 answer
54 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 ...
Pablo González's user avatar
0 votes
2 answers
723 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 ...
user66732's user avatar
  • 455
0 votes
1 answer
56 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 ...
CherryDT's user avatar
  • 103
3 votes
2 answers
926 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 ...
IsmailK's user avatar
  • 31
0 votes
1 answer
125 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 ...
Rohit's user avatar
  • 3
-1 votes
1 answer
1k 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 ...
user610620's user avatar
  • 1,528
1 vote
1 answer
762 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?...
Vincent's user avatar
  • 11
1 vote
0 answers
520 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 ...
Robert Bahn's user avatar

1
2 3 4 5
10