Questions tagged [private-key]

Private keys are used for signing transactions and allow the holder of the private key to spend the Bitcoin associated with the address derived from the private key.

A private key is the half of the public/private ECDSA keypair that is kept private. It is a 256 bit integer that is either randomly generated or derived from another private key which was randomly generated. Private keys are typically handled by a wallet software.

Possession of a private key allows the owner to sign transactions which involve the public key derived from that private key. This includes any transaction which spends from a P2PKH or P2WPKH output where the public key hashes to the hash provided in the output, or in P2SH or P2WSH outputs where the public key is provided as part of either the redeem script or witness script as a requirement for spending the output (e.g. for a multisig redeem script).

894 questions
9
votes
3 answers

The best way to keep my private keys safe?

Best ways means the most reliable and robust, and meanwhile easy to access ways?
Urso
  • 191
  • 1
  • 5
8
votes
4 answers

Is this an ok "poor man's 2 out of 3" key solution?

In the situation that you want no individual to have the complete private key, but you do want to share the complete key between 3 individuals, of which any 2 can construct the complete key, what is the downside from doing something like this: Orig…
Richard Green
  • 243
  • 1
  • 5
8
votes
1 answer

Why does Base58 WIF-format of PK have '5' prefix (the standpoint of mathematics)

I'm trying create raw private keys using the steps: Take a version of PK (0x80) and concatenate (as prefix)with my pseudo-random 32bytes-array. Take a calculated checksum (4bytes) and push it to the end of the array. Encode the result to…
Mergasov
  • 83
  • 3
8
votes
1 answer

What qualifies a valid private key?

The title pretty much sums up the question - say (for instance) I have a string of letters or numbers committed to memory, how hard would it be to convert that into a private key? Or similarly, how hard would it be to construct a private key based…
George Pearce
  • 404
  • 3
  • 13
6
votes
3 answers

I don't know how to export a private key from blockchain.info

I am trying to make a raw transaction which requires a private key but i can't seem to find a way to get it from blockchain.info.
user45038
5
votes
1 answer

How Do I Fix: "Safe mode: Warning: Displayed transactions may not be correct!"

While trying to retrieve the private key from satoshi bitcoin client i'm getting this error code: Safe mode: Warning: Displayed transactions may not be correct! You may need to upgrade, or other nodes may need to upgrade. (code -2) Does anyone…
Shon
  • 51
  • 1
  • 2
5
votes
2 answers

How to uncompress a compressed private key?

So I have a compressed private key. Is it possible to get the uncompressed version of it? If yes, how? Examples in Javascript would be much appreciated.
vinhboy
  • 181
  • 1
  • 7
4
votes
1 answer

Why can't I import a used private key?

According the the Bitcoin Wiki, when importing a private key: Bitcoind will rescan the entire block data to ensure this key has not been used before. This process will take from one to two minutes, depending on your CPU performance. DO NOT…
RentFree
  • 2,539
  • 2
  • 20
  • 36
3
votes
2 answers

Every bitcoin wallet user has one Private Key or every address has one private key?

I read somewhere that Private Keys are used to uniquely identify users and one user can have multiple addresses. So how does it work? Each private key derives a user or each private key derives an address ?
Varad Bhatnagar
  • 209
  • 3
  • 7
3
votes
2 answers

Do imperfections in dice make them unsuitable to make really good bitcoin private keys?

Dice do have imperfections (depending on how expensive ones you get), but would they not still have enough entropy such that a private key generated by them could be considered really safe? I am thinking of paper wallets storing lots of coins,…
jeorgen
  • 201
  • 1
  • 6
3
votes
3 answers

Python code to generate private ECDSA key

Would this Python code generate a valid ECDSA private key? import random def r(a, b): sys_ran = random.SystemRandom() return sys_ran.randint(a, b) def create_private_key(): hex_chars = '0123456789ABCDEF' ran_hex = ''; for i in…
zombio
  • 191
  • 2
  • 4
2
votes
1 answer

How to specify PrivateKey search range in HEX?

I am trying to generate random bitcoin Private_Keys in HEX format (32bit) but I want the randomness to have a value within a specific HEX range, say between 18909BDE11F67C97A53C62F45E632EAB58EA0D73A5FAC9EB50295FAD40A57EB5 and…
Robert
  • 351
  • 3
  • 15
2
votes
2 answers

How to get the private key in hex from the output of dumpprivkey

I am trying to create raw transactions according to the excellent answer of runeks here: How to redeem a basic Tx? But there he starts with a private key in hex format 18E14A7B6A307F426A94F8114701E7C8E774E7F9A47E2C2035DB29A206321725 and I have one…
relG
  • 290
  • 2
  • 12
2
votes
2 answers

Missing key on blockchain

I created 2 different wallets at block chain. The first one gave me an address for receiving btc. I used that address for a purchase, however, now when I login to my wallet, it no longer shows that address. Luckily, I saved it, and can search for…
Jamie
  • 21
  • 2
2
votes
1 answer

How a private key can be invalid?

From here, we can read that : A private key is a 256-bit value, meaning there are approximately 1.1579e77 possible keys (There are about 1.2288e66 invalid values But here, we have : Nearly every 256-bit number is a valid ECDSA private key. …
John Smith
  • 339
  • 1
  • 3
  • 13
1
2 3 4