Bitcoin Forum
May 04, 2024, 05:41:28 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Private key and public key  (Read 407 times)
demsybtc (OP)
Newbie
*
Offline Offline

Activity: 72
Merit: 0


View Profile
August 20, 2017, 01:05:50 PM
 #1

Hi guys,

What are the differences of public keys and private key? What are they used for? Can I only have one key?
Even in the event that an attacker gains more than 50% of the network's computational power, only transactions sent by the attacker could be reversed or double-spent. The network would not be destroyed.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714844488
Hero Member
*
Offline Offline

Posts: 1714844488

View Profile Personal Message (Offline)

Ignore
1714844488
Reply with quote  #2

1714844488
Report to moderator
escrow.ms
Legendary
*
Offline Offline

Activity: 1274
Merit: 1004


View Profile
August 20, 2017, 01:22:19 PM
 #2

I think this article explains it properly.

http://chimera.labs.oreilly.com/books/1234000001802/ch04.html
and read this as well.

http://bitzuma.com/posts/six-things-bitcoin-users-should-know-about-private-keys/
Darkoth89
Hero Member
*****
Offline Offline

Activity: 1274
Merit: 646


View Profile
August 20, 2017, 01:36:25 PM
 #3

I suppose you know the concept of public key cryptography? If you don't, here is a very short explanation: Public key cryptography (as used in Bitcoin), allows you to hand people a public key and use the corresponding private key to prove the ownership. So you can create any random private key (keep it secret) and calculate the corresponding public key (give it out to public for verification). Using this private key, you can sign a message and other people can verify that you own the private key by using your public key.

So, applied to Bitcoin.

A Bitcoin address is just a shorthand notation for a public key. When someone makes a transaction to an address, he states that "I give the right to spend this money to the person who owns the private key corresponding to this address". The person who has received this transaction will in turn be able to spend the transaction by signing the transaction using his private key. With this signature he can prove that he owns the key, without disclosing it. Others can verify the signature using the public key.

As for the second part of your question, if you download a bitcoin wallet, you can have as many different addresses as you wish.
demsybtc (OP)
Newbie
*
Offline Offline

Activity: 72
Merit: 0


View Profile
August 20, 2017, 01:43:53 PM
 #4

I suppose you know the concept of public key cryptography? If you don't, here is a very short explanation: Public key cryptography (as used in Bitcoin), allows you to hand people a public key and use the corresponding private key to prove the ownership. So you can create any random private key (keep it secret) and calculate the corresponding public key (give it out to public for verification). Using this private key, you can sign a message and other people can verify that you own the private key by using your public key.

So, applied to Bitcoin.

A Bitcoin address is just a shorthand notation for a public key. When someone makes a transaction to an address, he states that "I give the right to spend this money to the person who owns the private key corresponding to this address". The person who has received this transaction will in turn be able to spend the transaction by signing the transaction using his private key. With this signature he can prove that he owns the key, without disclosing it. Others can verify the signature using the public key.

As for the second part of your question, if you download a bitcoin wallet, you can have as many different addresses as you wish.

Meaning for instance, if I want to transfer $100 to u, I'll hand u my public key, thereafter I'll use my private key to identify myself as the authentic user? Meaning there's no harm for anyone to know my public key right? It's the private key which is utpmost importance
BitcoinSupremo
Copper Member
Hero Member
*****
Offline Offline

Activity: 1442
Merit: 529


View Profile
August 20, 2017, 02:28:28 PM
 #5

I suppose you know the concept of public key cryptography? If you don't, here is a very short explanation: Public key cryptography (as used in Bitcoin), allows you to hand people a public key and use the corresponding private key to prove the ownership. So you can create any random private key (keep it secret) and calculate the corresponding public key (give it out to public for verification). Using this private key, you can sign a message and other people can verify that you own the private key by using your public key.

So, applied to Bitcoin.

A Bitcoin address is just a shorthand notation for a public key. When someone makes a transaction to an address, he states that "I give the right to spend this money to the person who owns the private key corresponding to this address". The person who has received this transaction will in turn be able to spend the transaction by signing the transaction using his private key. With this signature he can prove that he owns the key, without disclosing it. Others can verify the signature using the public key.

As for the second part of your question, if you download a bitcoin wallet, you can have as many different addresses as you wish.

Meaning for instance, if I want to transfer $100 to u, I'll hand u my public key, thereafter I'll use my private key to identify myself as the authentic user? Meaning there's no harm for anyone to know my public key right? It's the private key which is utpmost importance

Correct. For more information read this article as it explains in deep the technical details for you, but normally is as you say, the private key is the one with utmost importance as anyone who have it can spend the bitcoins from that address.

http://www.dummies.com/software/other-software/bitcoin-public-private-keys/
demsybtc (OP)
Newbie
*
Offline Offline

Activity: 72
Merit: 0


View Profile
August 20, 2017, 03:05:17 PM
 #6

in that case needs to really secure and protect the private key, anyone else holding your private key is as good as holding your bitcoins. thanks for the sharing
Mike Mayor
Hero Member
*****
Offline Offline

Activity: 966
Merit: 535


View Profile
August 20, 2017, 06:59:14 PM
 #7

in that case needs to really secure and protect the private key, anyone else holding your private key is as good as holding your bitcoins. thanks for the sharing

Yes ! Keep your private key back up everywhere !! Go crazy with it. You can never have enough back ups. Please do yourself a huge favour and print out the private key and put it in your safe. This is also known as a paper wallet. Though a paper wallet printout is more fancy and nicer. Also don't backup an uncrypted or none password protected private key to any device that can connect online. Keep it offline if possible.

odolvlobo
Legendary
*
Offline Offline

Activity: 4298
Merit: 3214



View Profile
August 20, 2017, 08:09:17 PM
 #8

Some clarification of terms would help here:

  • Private key - A value that allows you to spend the bitcoins at the address associated with it. Anyone that knows the private key for an address can spend the bitcoins at that address.
  • Address - In simple terms, an address holds bitcoins. It is frequently (and incorrectly) called a "public key". It is not a public key. It is also frequently (and incorrectly) called a "wallet". It is not a wallet.
  • Wallet - A container holding one or more private keys and their associated addresses. Also, it typically includes software that maintains the wallet, connects to the Bitcoin network, and creates transactions.
  • Seed - A unique value used by a wallet to generate all of its private keys. This is also sometimes referred to as a "recovery phrase". Anyone that knows a seed can create the wallet that uses it and spend all the bitcoins in it.
  • Password or passphrase - A password may be used to encrypt the data in the wallet. This is not a seed.

Join an anti-signature campaign: Click ignore on the members of signature campaigns.
PGP Fingerprint: 6B6BC26599EC24EF7E29A405EAF050539D0B2925 Signing address: 13GAVJo8YaAuenj6keiEykwxWUZ7jMoSLt
Considered
Full Member
***
Offline Offline

Activity: 504
Merit: 100


Powered by Artificial Intelligence & Human Experts


View Profile
August 20, 2017, 08:16:48 PM
 #9

Some clarification of terms would help here:

  • Private key - A value that allows you to spend the bitcoins at the address associated with it. Anyone that knows the private key can spend the bitcoins.
  • Address - In simple terms, an address holds bitcoins. It is frequently (and incorrectly) called a "public key". It is not a public key. It is also frequently (and incorrectly) called a "wallet". It is not a wallet.
  • Wallet - A container holding one or more private keys and their associated addresses. Also, it typically includes software that maintains the wallet, connects to the Bitcoin network, and creates transactions.
  • Seed - A unique value used by a wallet to generate all of its private keys. This is also sometimes referred to as a "recovery phrase". Anyone that knows the seed can recreate the wallet and spend all the bitcoins in it.
  • Password or passphrase - A password may be used to encrypt the data in the wallet. This is not a seed.

Thank you for lighting me up.

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!