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
0answers
17 views

Generating a private key without a library

As far as I understand, a private key in the context of Ethereum is simply 256 random bits. The actual application of secp256k1 comes in when converting this to the public key, signing, etc. Based on ...
1
vote
1answer
37 views

Whats the best way to sign and send a transaction?

Hey I want to send a transaction that has a message embedded in it. I want the most secure way to unlock the personal account. I have full node GETH installed and am using web3.I have a nodejs script ...
0
votes
1answer
12 views

How to find private key on build.secondstate

I'm a beginner in ethereum application developing. Actually I started some days ago with a book and now I tried to build my first smart contract using BUIDL, actually at this site: https://buidl....
0
votes
1answer
79 views

How can I change the 12 word phrase in my trust wallet?

I created a ETH trust wallet on my phone for someone and he has now imported the trust wallet to his phone. Is there any way to change the 12 word phrase or somehow give the sole control to the ...
0
votes
3answers
36 views

How to generate a new Ethereum private key from a command line?

How one can securely generate a new raw private key from a UNIX command line? This private key can be then imported to wallet apps or web3.js.
2
votes
2answers
30 views

Programmatically getting an Ethereum address for a raw hex private key

Let's assume one has a private key in a raw hexadecimal format: # Not a real key ddc64840388bc5f2bc9d40a29b35ae3c41a8cdf9ee1dfdc5a46414e3db3de2db How one would get the corresponding Ethereum account ...
0
votes
0answers
20 views

Fastest way to convert private to public key in C# .net?

For vanity reasons I am trying to find a private key whose public key has the same 4 characters in both the start and ending position, such as: 0xABCD_____________ABCD . I am finding that my computer ...
0
votes
1answer
21 views

How to sign transactions while Geth does not provide private key?

I've lunched Geth for the first time and created some accounts on it. While creating accounts, I entered a password for each, and a key file is generated which contains encrypted private key belonging ...
0
votes
0answers
27 views

Ethereum JSON keystore file leaked - security?

If the JSON keystore file has been leaked but the password has not, can the attacker with the keystore file do anything? Assume the password is 20 or more characters long and not used in any other ...
1
vote
2answers
42 views

HD paths on MyEthereumWallet

I hae some coins on MyEthereumWallet, that I can see in block explorer, but can not access it. I think that the mnemoic and password is correct. My assumption is that I messed up something with the HD ...
0
votes
1answer
20 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 ...
1
vote
1answer
38 views

Is it possible to transfer token from other address if I have private key from it?

I know that if someone owns tokens he can simply call transfer method of contract to send money. I also know that for ERC20 contract owner of tokens can call approve for my account, and then I can ...
1
vote
1answer
38 views

Help on recovering wallet through brute force or from extension data (Bounty on recovery)

I know 10 of 64 characters (hex) of my ethereum private key unencrypted and their positions. I also know the corresponding wallet address. Is a brute-force possible? What I am thinking of is ...
1
vote
1answer
40 views

Generating multiple deposite address for one account

I want to create something like a Crypto exchange, in which I need to generate different unique deposit addresses for each user, so they can send funds to their accounts while I can keep track of how ...
0
votes
1answer
21 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
254 views

How can I get a private key from a mnemonic phrase?

I want to convert a 24 words length seed phrase into a private key using web3.
0
votes
2answers
14 views

What is the privatekey to be used to sign web3.js transactions?

I created an account on metamask, and downloaded the json of my wallet. It's on rinkeby. The structure of the json is { "version":3," id":"...", "address":"....", "crypto": {...
1
vote
1answer
45 views

private key vs seed

I made an extra account in Metamask for my GF, I kept Account 1 for myself and I gave only the private key of Account 2 to my GF. I kept the seed words only to myself. Since then, she has dumped me ...
0
votes
1answer
32 views

CLI wallet where I can pass in a Private Key and send out ETH and then delete this key?

Is there a CLI command where I can pass in an ethereum private key and send some coins to another address? I'm trying to build out a reoccurring payment system where a user can send 1 eth to another ...
1
vote
0answers
31 views

Is there a way to view the private key of test account in Remix (javascript VM)

Seeing how the keys are random and those "100 ethers" aren't real I can't think of why this is not obvious functionality, I'll need this for many reasons.
0
votes
1answer
27 views

How to Locate Private Key/JSON file of Account Created in Geth terminal

Software: Ubuntu on Virtual Box I created test account in geth terminal (rinkeby network), i.e., but I am not finding keystore, or json file in home\rinkeby\keystore Please assist can someone ...
1
vote
1answer
67 views

How get private key in private network?

I launched a private RPC Blockchain network and connected through another computer to this network. The connection is successful. How can I get a private key(through Python) if the file is on another ...
1
vote
1answer
49 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
2answers
87 views

How to find private keys on Remix ide

I want to sign a message on Remix and I can't find the pair of private/public key. For example - I going to Deploy & Run Transactions, then trying to "Sign a message using this account key" with ...
0
votes
1answer
45 views

Building a deterministic wallet without random seed phrase instead multiple static inputs

If I want to be able to create a private key given inputs x,y,z and these inputs are constant, if I add enough entropy as a salt would it be secure to create a key this way (in terms of brute force ...
0
votes
1answer
38 views

DDEX Api Question for Python… Signing ETH Transactions?

Having an issue with signing a message for the DDEX api... I'm trying to do it in python, and for some reason my signature is off by two characters. Here's my code using the private key and UTC ...
1
vote
1answer
70 views

How Can I Sign A Transaction Server-Side?

I have a server-side Node.js app that sends a transaction to an Ethereum smart contract like so: const transaction = await contract.methods .method_name([params]).send({ from: [...
0
votes
0answers
22 views

ethereum whisper's method 'addPrivateKey' returning different keyid pair for same private key

Can somebody please explain why running this code produces different key-id pair each time? Is it not supposed to be unique for a given pvt key? web3.shh.addPrivateKey('...
0
votes
0answers
48 views

How to get my private key from keystore file for creating raw transactions Web3.js [duplicate]

I am trying to get my Ethereum private key, so that I can create raw transactions to broadcast through infura. Currently, I have a keystore file that was created with Geth, but this is not directly ...
2
votes
1answer
42 views

Wallet generator

probably this will be a very stupid question... So be careful :) from eth_account import Account while True: newAccount = Account.create() f = open("File.txt", "a") f.write("\nAddress: " +...
2
votes
2answers
595 views

How to create a RawTransaction for contract interaction Web3j

I want to sign a transaction that calls a smart contract function and send it to the Rinkeby network. I found on Web3j documentation the RawTransaction class that supports the methods for the ...
1
vote
0answers
62 views

Invalid Private Key Format

Apologies in advance if this is a silly question but I can't figure out why my metamask private key is 66 characters long instead of 64? I'm attempting to use this key with the MakerDao Dai.js library ...
0
votes
0answers
33 views

The reasons behind using public/private and addresses?

I understand that we need a public/private key so anyone can sign a message and miners can verify the signature using the public key. But, In this Question Relationship between Ethereum Address and ...
1
vote
1answer
57 views

How can I export/show private key on parity cli?

I did this command on parity parity --chain mainnet account new I got the address but, How can I export or see the private key?
3
votes
1answer
349 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
2answers
121 views

Public key validation through private key

What is a good way to validate that the public key claimed to belong to a particular user really belongs to him without revealing the associated private key? Can this be done with zero-knowledge ...
0
votes
1answer
480 views

Generate wallet public and private key using web3 PHP

I am using this to get public key: https://github.com/sc0Vu/web3.php#assign-value-to-outside-scopefrom-callback-scope-to-outside-scope I am in need of to get the public and private key using PHP ...
1
vote
0answers
32 views

Where Metamask store Keys? [duplicate]

When a user enter his private key on metamask, where it store in metamask ? Can metamask access this key through any activity ?
1
vote
0answers
34 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 = '...
2
votes
1answer
48 views

How to have users sign transactions on an ethereum based platform without giving up their Private Keys to the platform?

How to have users sign transactions on an ethereum based platform without surrendering their Private Keys to the platform? Need the process to be automated, while users not giving up their private ...
4
votes
2answers
277 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
60 views

How can Contracts sign transactions, when they dont have a private key?

When transactions are made the sender is identified by his signature. But Contracts dont have a private key to sign any transaction or message. So I have some questions: Can a Contract initiate a ...
0
votes
1answer
215 views

Import geth account into metamask

How do I import a keystore file generated in geth into Metamask? Is there a simple way for me to convert the ciphertext into a private key, can I decrypt it with my passphrase somehow?
0
votes
0answers
147 views

Can i convert my HEX private key to RAW form?

Sorry guys if this is a basic question but i am new to this. I have got my private key only in HEX format. converting to raw and then importing or directly making a wallet using HEX private key. Is it ...
0
votes
1answer
48 views

If Address and private key doesn't get stored in Ethereum,then how will it validate users?

I think in a normal database,the username and password gets stored in the database and when a user enters his/her credentials,it checks with the content in the database to know his/her Authenticity. ...
0
votes
0answers
206 views

How to call contract method from specific address and private key without Metamask check

Good morning, I need to known how call contract method in javascript from specific address(and relative private key) without the check of Metamask. I explain better. This is an example of js code, ...
2
votes
0answers
72 views

Truffle test to verify events can be queried by the address of the signing user?

I'm trying to write a test which verifies I can query a given type of events by the user/address which sign them. I would like to apply TDD (relevant to say I haven't made the implementation for this ...
1
vote
0answers
27 views

Eth transfer assistance help request [closed]

how can i do the transfer from eth wallet address to another eth wallet address? because i have a public eth wallet address with balance within , i dont know how can i transfer the balance in order ...
0
votes
2answers
751 views

How to transfer ERC20 tokes from Blockchain wallet to MyEtherWallet?

I got some token and by mistake sent them to my Blockchain ETH address. Now, what is the process of transferring them to MEW? They talk about exporting your private key, what does that mean and to ...
2
votes
1answer
144 views

Is it possible that Ganache can handle a private key without an “0x” prefix, but Parity cannot?

I am trying to sign and send a transaction as follows: let signedTx = await web3.eth.accounts.signTransaction(options, PRIVATE_KEY); let txReceipt = await web3.eth.sendSignedTransaction(signedTx....

1
2 3 4 5 6