1
I'm a programmer and want to get to know more about encryption and how Bitcoin works, but there is not much on the web describing how all this code works. It would help if there was some visual way to describe the concept of how and what its doing.
How can someone send the public key and private key to another computer without giving away the private key? If you didn't send the private key, how would the other computer know the transaction was from you and not someone else pretending to be you?
I have read up on key pairs and have managed to generate a key pair in java. Everyone's example of 'using' key pairs is very vague. How do you "use" the key pair to confirm a transaction. I know you have a private key that signs the transaction and the public key some how confirms the transaction but i don't understand the "how" it is "used" if you send a transaction with your secret key wouldn't that no longer be a secret key? How is the public key confirm the transaction was signed correctly? How can you send your secret key out with out some one using it once they get it? If Bob sends a transaction to Tim would Tim not now have Bobs security key?
I'm very sorry if this question sounds dumb. I'm just having a hard time understanding how you can send some one a transaction and be able to "sign" that transaction and how its confirmed. a lot of posts people are saying its Elliptic Curve Digital Signature Algorithm (ECDSA) but how is it doing all of this.
What do you mean by 'security code' and 'security key'? – Nick ODell – 2014-10-30T19:30:49.873
From what I can see its using a key pair. Where it makes two keys one public and one private. I could be wrong. – Patrick W. McMahon – 2014-10-30T19:39:00.963
Hi Patrick, welcome to Bitcoin.SE. Please check out our [tour] for a quick overview how our site works. As you might imagine many questions have already been asked and answered, so please check whether a question already exists before you ask it again. Also, it is easier to compare answers and to merge questions when there is only one question per post. I suggest you check out What is a private key and a public key? and maybe this collection of questions: I am new to Bitcoin, how can I get started?
– Murch – 2014-10-30T19:40:35.393Patrick: It would be great if you could edit your question to only ask about one topic and give it a descriptive title. You can ask as many questions as you want, so you can create a new one for each of the other topics. :) – Murch – 2014-10-30T19:43:37.253
I think I should start with a more basic understanding of what is going on under the hood prior to getting two in depth into questions. – Patrick W. McMahon – 2014-10-30T20:03:22.333
In addition to the pages that @Murch linked to, I also find this video to be very informative: https://www.youtube.com/watch?v=Lx9zgZCMqXE.
– morsecoder – 2014-10-30T21:16:14.120You never share your private key. You only share your public key, and a signature that proves you have the private key (without revealing the actual private key). See more detailed answer below. – Madzi Konjo – 2014-10-31T08:14:21.023
I would like to thank all of you for the information provided. I'm still researching this stuff and have a long way to go in understanding the inner workings of how digital currencies work. – Patrick W. McMahon – 2015-01-23T20:37:27.240