Questions tagged [private-key]

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

Filter by
Sorted by
Tagged with
58
votes
7answers
200k views

How to import a plain private key into geth or Mist?

This is such a basic question, but I can not figure out how to import a plain, unencrypted private key into geth or mist? I tried geth account import 7[......]bla but it seems this command is always ...
34
votes
1answer
5k views

Where is the private key for a contract stored?

This is a question that I am asked often by developers who assume that a contract has a private key of its own to sign any transactions that it makes.
28
votes
9answers
43k views

How do I get the raw private key from my Mist keystore file?

I use the Mist wallet. I would like to know: How I can get the private key of my account. How I can use this private key to sign messages.
24
votes
4answers
15k views

workflow on signing a string with private key, followed by signature verification with public key

I know this question has been asked and answered, but while trying to get everything to work, I've come across some problems. This is what I'm trying to do: 1. take a target string 'Schoolbus' 2. ...
23
votes
2answers
6k views

Is each Ethereum address shared by (theoretically) 2 ** 96 private keys?

Summary This is an extended question to How are ethereum addresses generated?. In Ethereum, a private key is 256-bit long, but an address is only 160-bit long. By "Pigeonhole Principle", it ...
19
votes
1answer
2k views

What if I had the private key that had the public address of a contract?

Could I spend the money a contract owns if I had the private key that goes to the public address that a contract resides at? (I realize that I'd have a better chance of being struck by lightning ...
19
votes
2answers
6k views

Can I use the same private key for Ethereum and Bitcoin?

Both Bitcoin and Ethereum private keys are usually a 256-bit number, isn't it possible to use the same private key for both Bitcoin wallets and Ethereum accounts? For instance, the Bitcoin wiki states:...
18
votes
1answer
15k views

Getting private keys of geth accounts

Just the opposite of this question How to import a plain private key into geth or Mist? I would like to know how can I obtain the private keys of the accounts created with geth in this way: $ geth --...
17
votes
1answer
11k views

EthereumJS: How to get public key from private key

I am trying to create a private key and its corresponding public key using EthereumJS library. So far so good I've been able to create private keys using keythereum.create() method. Nevertheless I ...
16
votes
3answers
18k views

How can I get my accounts into metamask or vice versa?

I need my accounts in Metamask to match my local machine so I can deploy from the machine (using truffle), and test in a browser. How can I either: Upload my local geth accounts to Metamask Bring ...
16
votes
1answer
6k views

Location of public and private keys of Ethereum account

I want to know the details about key generation and handling in Parity. The questions listed are all related, so I put them all in this one question post. When a new Ethereum account is created on ...
15
votes
3answers
8k views

How to validate a private key?

I could not find any library that, given an hex value, returns true if the given string is a valid ether private key. Any hints?
14
votes
2answers
3k views

What the difference between Bitcoin and Ethereum private/public keys and address?

I am trying to find a library for creating Ethereum wallets in a web environment (PHP, JS). I found Keytheremjs lib, but if use it in a browser, this tool is very slow. But I found a lot of simple PHP ...
13
votes
3answers
22k views

How to properly create a raw transaction and sign it using web3 in browser

I want to create and sign a transaction in browser using web3. In order to create a raw transaction, I think I have to do something like this (hopefully you can fill the gaps of my knowledge) var pk =...
13
votes
1answer
13k views

How to change the password to an account?

The private key of an owned Ethereum account is encrypted with a password and kept in a so-called key file. How can I change this password?
13
votes
2answers
14k views

What is the Private Key?

I am trying to understand what is the private key in Ethereum. Help please. Private key = the address? Private key = the password/passphrase? Private key = the text seen when we open the file in the ...
12
votes
1answer
8k views

How to generate a keystore (UTC) file from the raw private key?

If I have the plaintext private key, -how- can I generate a geth-compatible keystore file using Node.js? I think I need to encrypt it using the scrypt algorithm by supplying a password, but I don't ...
12
votes
1answer
840 views

Ethereum signature verification not matching

What I want to achieve is sign a message and then verify the signature whether verified by same address or not. Contract to Invoke ecrecover method to verify the address contract MyAuth { ...
11
votes
2answers
6k views

Do I need to encrypt the keystore file(s)?

When I run cat on one of the files in the keystore directory I see things like id, mac, etc. but I do not see private key. Is it safe to send the keystore file unencrypted over the internet? If the ...
11
votes
2answers
2k views

Does knowing half private key provide any useful information?

I have a private key and I want to store a paper version of it. I would like to split it in 2 equal parts (first 32 numbers and last 32 numbers) and store them in 2 different locations. Let's assume I'...
11
votes
2answers
1k views

Secure paper wallet creation for ETH using JS

I am about to start the process of transferring my ETH to paper wallets for safe keeping. Currently the funds are stored on an online exchange. History shows that this is a very bad idea. It is not ...
9
votes
2answers
18k views

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

I have a private key for my wallet and also a keystore for it. I want to use it in MEWConnect. Is there a way to get a mnemonic phrase from a private key?
9
votes
1answer
2k views

How should I secure a private key in my dapp?

We are currently building an app that interacts with the blockchain. It needs to be able to make transactions on the blockchain on it's own - for instance to add addresses to a whitelist. This means ...
7
votes
3answers
4k views

Migration from Geth to Parity: Is there anything to copy/export?

So, I want to migrate to gain disk space thanks to blockchain pruning (it seems that it goes from ~11.4 GiB to ~3.3 GiB) and try the difference of sync speed. Is this already documented somewhere? (...
7
votes
1answer
3k views

How to get address from private key in java

I use generate a private key in java code HashUtil.sha3("cow".getBytes()) Write to a new private key file: c85ef7d79691fe79573b1a7064c19c1a9819ebdbd1faaab1a8ec92344438aaf4 Then, I use geth account ...
7
votes
3answers
4k views

How to import a plain private key into Parity?

Basically the parity version of this. Can Parity import raw private keys or Geth keystore files?
7
votes
3answers
4k views

Storing and passing encrypted data to another owner

I've been thinking about this situation for quite a while and I wonder if there is a way to solve this on the public Ethereum blockchain. User A stores some data on the blockchain, encrypted in some ...
6
votes
2answers
2k views

Generating ethereum address from private key on Ubuntu 32 bit

I have a securely generated private key that I want to use to generate an ethereum address on an offline PC (Ubuntu 32 bit). My preferred way would be to use geth, but there's no geth binary for linux ...
6
votes
3answers
7k views

How to get private through UTC files in keystore

I create accounts by geth account new with a password, then I get a UTC file which is a json file saved in folder keystore under data directory. Now I am attempt to get private key from this json file....
6
votes
2answers
2k views

What algorithm is used to encrypt a private key?

In my understanding, private keys are encrypted with some symmetric algorithm, so you can't access them without passphrase. What is it called?
6
votes
1answer
481 views

Is possible to continue the BIP32/BIP39 algorithm from a Pk and Sk pair and “climb” to the mnemonic seed?

A few days reading about the BIP algorithm and the generation of the key pairs. Found that on the BIP 32 Paper: Child key derivation (CKD) functions Given a parent extended key and an index i, ...
6
votes
1answer
897 views

Why doesn't my private key's public key generate the correct public address?

Private Key: 9ccbcabf23e271183dbed503b43277f4c6eee9ac918cd6cda75ebb73ceb35c7d Corresponding Public Address: 0xa73Fb234B1773ed7b115D18A1f0a15579bA2C1e1 (check for yourself on MyCrypto, for example) ...
5
votes
2answers
6k views

How to implement role-based access control to user's private data?

We have this application scenario and try to see if Ethereum, or blockchain in general, is a good solution for this. The basic idea is the user controls a small amount of private sensitive data (e.g....
5
votes
2answers
2k views

Forgot my private key in ether.li

I've bought 50 ethers on btc direct 2 weeks ago. I've send it to my user account on ether.li. What was not the best choice. Because now I need the private key to withdraw it. I can't remember I had to ...
5
votes
3answers
3k views

Proper Transaction Signing

I am trying to implement a voting system in nodejs. My server needs to be able to create transactions and send them to the ethereum blockchain when provided with the user private key. I have tried ...
5
votes
2answers
2k views

Deriving Ethereum address from Bitcoin address

As far as I know Ethereum private keys are compatible with Bitcoin private keys, as described in Can I use the same private key for Ethereum and Bitcoin? . HOWEVER Can I derive an Ethereum public ...
5
votes
1answer
939 views

Is it possible to regenerate the private key file?

I have created an account in testnet which I know the address and the password of, but I did not backup the private key file. Can I somehow create the key file again using the password? Or is my ...
5
votes
2answers
475 views

Is it safe to generate an account with 256 coin flips?

Suppose one generates an account with the following procedure: Flip a coin 256 times; On a paper, write each heads as 1 and each tails as 0; Convert the 256-bit string to hex by mapping each 4-bit ...
5
votes
1answer
878 views

How to generate an Ethereum “brain wallet” in Javascript?

Namely, enter string -> get private key?
5
votes
1answer
273 views

Unlinkability between transactions to a smart contract

I am trying to develop an application using Ethereum and it needs to have transactions which are not linkable. I read an article by Vitalik Buterin, which speaks about it. He speaks about something ...
5
votes
1answer
590 views

Can you solo mine directly to an address you don't have the private key for?

Is it possible to solo mine directly to an address you don't have the private key for. I would like to directly mine into my exchange address. Thank you
5
votes
1answer
804 views

How can I generate a cold wallet completely offline WITH a random number seeded by me?

Requirements: 1) An account created on a raspberry pi that has never been connected to the internet ever. 2) A great private key on this account, that does not rely on any random number generator. 3) ...
5
votes
1answer
599 views

is it possible I imported my wallet “Keystore” file and somehow the password files not included?

I tried running My Ethereum Wallet on my windows P.C, created a wallet and had some ETH sent to it. Then for some reason I waited and waited but the software just would not sync. So, I stored the ...
5
votes
2answers
1k views

Convert a Bitcoin private key into an Ethereum address

I'm currently using the lightwallet.js for ethereum and it seems to only accept a mnemonic seed to generate an ethereum address. I want to be able to use my Bitcoin private key to generate an ethereum ...
5
votes
1answer
325 views

ConsenSys/MultiSigWallet how do I call addOwner()

I'm using the ConsenSys/MultiSigWallet but I'm struggling to add an additional owner to the wallet. I've read in the source code that an addOwner() call has to be sent by wallet, but I'm unsure how ...
4
votes
1answer
4k views

How to get private keys on Truffle from Ganache accounts

Doing some ERC-735 tests on truffle+ganache I got stuck when creating claim signatures. They need to be signed from my ganache account, but I don't know its private key. The code to be used is this: ...
4
votes
1answer
7k views

What is the difference between a private key, password, brain wallet, recovery passphrase, and wallet?

What is the difference between a private key, password, brain wallet, recovery passphrase, and wallet, if any? Is there any connection between these?
4
votes
1answer
707 views

Unknown Keystore / Encrypted Wallet Format

Have a user with a keyfile format that I don't recognize and MEW can't decrypt (obviously). Anyone have any insight on where this came from or what the encryption mechanism is? Sensitive info has been ...
4
votes
2answers
3k views

Is it possible in theory to generate the private key for the 0x0000000000000000000000000000000000000000 wallet?

Is there any chance, although extremely low, to generate the private key for the 0x0000000000000000000000000000000000000000 wallet? Does the system allow it at all?
4
votes
1answer
3k views

How to verify a paper wallet is working without compromising the private key?

MyEtherWallet tells the user: You need to back up your private keys externally and verify you can access the wallets. I am wondering, how do you verify you can access the accounts without ...

1
2 3 4 5
7