Questions tagged [public-key]

A public key is the public half of the public/private keypair. Anyone can use a public key check that a signature is correct, but they can't generate the signature themselves with the public key.

A public key is the public half of a public/private ECDSA keypair. It is meant to be shared and without revealing the private key. Public keys can be used to verify a digital signature and encrypt data that can only be decrypted by the private key.

499 questions
73
votes
4 answers

What is a compressed Bitcoin key?

The standard Bitcoin client in version 0.6 apparently introduces compressed keys. What are they? Are there any drawbacks to using them? Any incompatibilities with older software? Reductions in cryptographic strength?
Thilo
  • 4,751
  • 5
  • 25
  • 37
61
votes
6 answers

What is relation between scriptSig and scriptPubKey?

Scenario: A is sending 1 BTC to B. scriptSig appears in the Input Script. scriptSig = Here, public key is the Public Key of the sender, A. (this is the public key corresponding to his Bitcoin Address which has some unspent…
Neon Flash
  • 1,033
  • 2
  • 10
  • 10
30
votes
5 answers

How are public & private keys in an address created?

I understand the high level concept I am more interested specific details. How is a private key generated. How exactly is public key generated, how is address generated from public key.
DeathAndTaxes
  • 8,747
  • 2
  • 36
  • 65
25
votes
1 answer

Why does hashing public keys not actually provide any quantum resistance?

In the discussions about taproot, it was mentioned that outputs will include the public key directly instead of hashing them. It is stated that, currently, hashing does not really provide quantum resistance. Why is that?
Andrew Chow
  • 67,209
  • 5
  • 76
  • 149
25
votes
3 answers

Is it possible to get the public key of a bitcoin address I do not have the private keys for with the standard client?

It is possible to get it from here: https://blockchain.info/de/q/pubkeyaddr https://blockchain.info/q Is it possible with the standard client? How? I am aware that the blockchain only contains the pubkey after a tx from that address.
kermit
  • 2,009
  • 1
  • 17
  • 26
23
votes
2 answers

How are public and private keys related to the wallet?

I understand that all the Bitcoin protocol is based on an asymmetric cryptography. A user gets 2 keys (public and private). How do these keys connect to the Bitcoins? How are the keys are related to the wallet? How can I decide how many Bitcoins to…
Sean Black
  • 331
  • 1
  • 2
  • 7
20
votes
2 answers

Why do you use Bitcoin addresses instead of public keys?

Why do you hash the public key twice? Are there security benefits to abstracting away from the public key? Is it because the address can represent multiple things? I'm missing something. Could you theoretically send bitcoins directly to the public…
ihtkwot
  • 331
  • 2
  • 6
20
votes
1 answer

What is a private key and a public key?

What exactly is a private key and public key in relation to Bitcoin? What are they, how are they used, and how does one find out what their private and public keys are?
Sam Weinberg
  • 821
  • 1
  • 6
  • 14
20
votes
2 answers

Why does the length of a bitcoin key vary?

Why does the length of a bitcoin key vary? Why aren't they all the same length?
shoeless joe
  • 2,237
  • 3
  • 20
  • 26
18
votes
2 answers

Does a wallet containing multiple addresses have a single private key?

Title says it all. Would one private key enable you to recover all the addresses in your wallet? Or does a wallet just contain a series of key-pairs?
Leftover Salad
  • 387
  • 1
  • 2
  • 7
17
votes
3 answers

Why is it not possible to get the private key out of the public key?

From how I understand it, the equation for the public key is defined as so: K = k * G With K being the public key, k the private key and G the generator point. Is G a constant? (as far as I read, it is a constant.) If it is, how is it not…
Purple Gang
  • 285
  • 2
  • 6
16
votes
3 answers

All Bitcoin Public Keys with non-zero balance

I want to get a database or otherwise retrieve a set off all bitcoin public keys (not addresses) that have non zero balances. What would be the easiest way to do that? Is there an API that could do such thing? Do I have to download and prune the…
Benedikt Bünz
  • 586
  • 1
  • 3
  • 8
16
votes
1 answer

Can private keys remain offline for their entire life?

I am new to Bitcoin and this question is based on 3 assumptions that may be incorrect. Assumption 1: If I understand correctly, the Bitcoin address is generated algorithmically independent of the network, so I should be able to create a public…
14
votes
1 answer

What are the potential attacks against ECDSA that would be possible if we used raw public keys as addresses?

According to this answer about why addresses are hashes rather than public keys there are potential attacks that are possible if you have the public key rather than the address, what are these attacks? If one was writing a cryptocurrency would you…
Leah Cornelius
  • 362
  • 2
  • 7
14
votes
3 answers

How would one "Encrypt" a message using a Bitcoin *public key* and use its private key to decrypt it?

I have the following text string: This is a test message. Using my bitcoin public key (bitcoin address?), how can I encrypt this message? How would I decrypt the message using a bitcoin private key?
Patoshi パトシ
  • 10,956
  • 18
  • 80
  • 151
1
2 3
33 34