Bitcoin Forum
May 22, 2024, 12:54:02 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Wallets/Addresses/Keys  (Read 1034 times)
unlimited_020 (OP)
Newbie
*
Offline Offline

Activity: 11
Merit: 0


View Profile
August 24, 2014, 10:31:24 PM
 #1

I am still trying to get my head around wallets and the way bitcoin works.

If I download wallet software such as "bitcoin core", can I create numerous wallets within this or is it just one wallet?

From what I have read, you can have numerous addresses in one wallet. And addresses are made from a public and private key combination? Is it possible for two people to have the same public key but a different private key of does each private key always generate a unique public key?

Say I have a wallet with 4 addresses in it: With 5 bitcoins assigned to each address. So my wallet total is 20 bitcoins. I want to buy a loaf of bread that costs 12 bitcoins (a bit on the expensive side, i know). I go into my wallet and click on the 'send' option. I type in the public key that the bakery has provided me with and send 12 bitcoins. Is this possible? If so, how does it decide which address' to take from? Does it take evenly from each address or does it start from the 1st one and when it has filled its order, it stops. So if there was 15 bitcoins in the 1st address, it would stop there?

I watched a tutorial on how to paper store your bitcoins offline. And I understood he whole process. However, I want to cold store my bitcoins on a usb stick. So I was thinking instead of printing the codes, just save them on a notepad onto my USB? Is this the best way to do this, or is there a better way?

If you wanted to split 1000 bitcoins between 1000 addresses, will you have to do there a way to only send once but have it split across 1000 addresses. Maybe if they are in the same wallet for example?

Finally, am I right in thinking, you don't actually need to download wallet software to receive bitcoins? You could just go to "bitaddress.org" and generate a random address. Write this address down. Then give the public key to someone who can then send you the bitcoins? If this is possible, how could you then spend the bitcoins?

Cheers.
jjc326
Hero Member
*****
Offline Offline

Activity: 700
Merit: 500


View Profile
August 24, 2014, 11:31:07 PM
 #2

I'm not sure either. Can you do bitcoin qt or is it core now? And do multiple addresses on the one client?  I've been using blockchain so I can do as many as I want
DannyHamilton
Legendary
*
Offline Offline

Activity: 3388
Merit: 4653



View Profile
August 25, 2014, 12:38:49 AM
 #3

I am still trying to get my head around wallets and the way bitcoin works.

If I download wallet software such as "bitcoin core", can I create numerous wallets within this or is it just one wallet?

Some wallet software makes it easy for users to keep track of multiple wallets.

Bitcoin Core does not.

It is possible to maintain multiple wallets with Bitcoin Core, but it requires some technical knowledge, and some care moving files around.

From what I have read, you can have numerous addresses in one wallet.

Correct.

And addresses are made from a public and private key combination?

Addresses are calculated from a public key which is calculated from a private key.

Is it possible for two people to have the same public key but a different private key of does each private key always generate a unique public key?

With the most common types of transactions, each private key results in exactly 1 public key.  Each public key results in exactly 1 compressed key bitcoin address and 1 uncompressed key bitcoin address.  Using Pay-to-script-hash (P2SH), and other scripting techniques, it is possible to create some more complex transaction types, but I don't think this is what you are asking about.

Say I have a wallet with 4 addresses in it: With 5 bitcoins assigned to each address. So my wallet total is 20 bitcoins. I want to buy a loaf of bread that costs 12 bitcoins (a bit on the expensive side, i know). I go into my wallet and click on the 'send' option. I type in the public key that the bakery has provided me with and send 12 bitcoins. Is this possible?

No.  The bakery will most likely not provide you with a public key.  They will almost certainly provide you with a bitcoin address.

You CAN type the bitcoin address that the bakery provided you with and send 12 bitcoins.

If so, how does it decide which address' to take from? Does it take evenly from each address or does it start from the 1st one and when it has filled its order, it stops.

This is known as a Knapsack Problem.

Bitcoin Core has its own algorithm for deciding which bitcoins to spend.

Please note that that your wallet doesn't actually store "balances". Unless you received exactly 4 transactions each valued at exactly 5 bitcoins, your wallet is probably made up of MANY smaller outputs.  Each and every transaction that you receive is independently represented and independently spent in its entirety.

So if there was 15 bitcoins in the 1st address, it would stop there?

It might, or it might chose bitcoins from other addresses.  It will depend on the exact list of outputs that your wallet has received, and how long ago each of those outputs was received.

I watched a tutorial on how to paper store your bitcoins offline. And I understood he whole process. However, I want to cold store my bitcoins on a usb stick. So I was thinking instead of printing the codes, just save them on a notepad onto my USB? Is this the best way to do this, or is there a better way?

That should be fine as long as you are able to access that USB in the future.  What happens if the USB breaks or is damaged?  What happens if technology changes in the future and computers no longer have USB ports in them?  If you do choose to do this, keep in mind that it isn't enough to just store the bitcoin addresses.  It is VERY important to store the private key that is associated with each bitcoin address, otherwise you will never be able to spend the bitcoins.

If you wanted to split 1000 bitcoins between 1000 addresses, will you have to do there a way to only send once but have it split across 1000 addresses.

Yes.

Maybe if they are in the same wallet for example?

That wouldn't be necessary, but it would certainly make the process easier.

Finally, am I right in thinking, you don't actually need to download wallet software to receive bitcoins?

Correct.  You just need software to generate a private key and the associated bitcoin address.

You will need wallet software of some sort to send bitcoins, and software makes it easier to keep track of multiple addresses (and their associated private keys) as well as all the transactions that you may have received.

generate a random address. Write this address down. Then give the public key to someone who can then send you the bitcoins?

No.  Son't give them the public key.  Give them the bitcoin address.  Most software doesn't handle sending to a public key very well.

Also, it would be VERY important to also keep track of the private key that is associated with the bitcoin address.  It's this private key that the wallet software uses in the future when you eventually want to send the bitcoins somewhere.

If this is possible, how could you then spend the bitcoins?

You would import the private key into some wallet software and use the software to create and broadcast the transaction.
honolululu
Member
**
Offline Offline

Activity: 103
Merit: 10



View Profile
August 25, 2014, 12:51:52 AM
 #4



Cheers.

If I download wallet software such as "bitcoin core", can I create numerous wallets within this or is it just one wallet?

From what I have read, you can have numerous addresses in one wallet. And addresses are made from a public and private key combination? Is it possible for two people to have the same public key but a different private key of does each private key always generate a unique public key?


A wallets are just a file that hold your private keys.  The private keys are all that matters, but it is very convenient to keep your keys safe by keeping your wallet.dat file safe.

I don't think two different public keys can match a private key, buy two instances of bitcoin core can independently generate the same public private key pair, but the odds against it happening during the lifetime of the sun is practically zero.  

All right, I'm out of what little steam I had Wink, but that bitaddress.org is better if you download the java and run it on a secure computer.  You would then need to import the private key into a fully updated client or a website like blockchain.info.  Make sure you trust who you keep your coins with. Smiley
DannyHamilton
Legendary
*
Offline Offline

Activity: 3388
Merit: 4653



View Profile
August 25, 2014, 01:04:58 AM
 #5

I don't think two different public keys can match a private key

Each private key maps to exactly 1 public key, however, there are on average approximately 79,000,000,000,000,000,000,000,000,000 (7.9 X 1028) public keys that map to each bitcoin address.

That being said, you're never going to find any two key pairs that both map to the same bitcoin address.  There are a total of approximately 1,460,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000 (1.46 X 1048) different addresses and a total of approximately 116,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000 (1.16 X 1077) private keys.
notlist3d
Legendary
*
Offline Offline

Activity: 1456
Merit: 1000



View Profile
August 25, 2014, 01:59:37 AM
 #6

Your public address you can plaster everywhere to remember, people can send to it.

Your private key be very careful with look into cold storage or other options if much money is being held in the address.
unlimited_020 (OP)
Newbie
*
Offline Offline

Activity: 11
Merit: 0


View Profile
August 25, 2014, 09:55:59 AM
 #7

Cheers, great replies. Slowly but surely understanding how bitcoin works.
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!