0
When I search for transaction in bitcoin I am able to find explanations which tell me that there are e.g. two persons A and B and A wants to tranfer a number of bitcoin to B. Imagine A wants to pay 2 Bitcoin to B and owns an private key for 1.5 Bitcoin and 1.3 Bitcoin.
First Question: private key for what exactly? What is signed/encrypted with a public key - which system validates that I am a private key owner? (I don't need explanations for public key cryptography RSA, ElGamal and GMR are well known to me)
Now these two amounts of bitcoins are taken by a system X (what is X?) and it will be created an output with amounts 2 Bitcoin (i) and 0.8 Bitcoin (j). Where will the public and private keys for i and j are generated? How and from which holder (after generation) to which (new owner) will they be transmitted? What kind of message do they sign/encrypt (content).
Okay, let me call "all nodes" "system X" now how does X do it? I know what proof of work is and also know that a number of transactions are included in a block and the block is validated by users/nodes adding further blocks - which leads to the longest chain of blocks... – Hans Wurst – 2019-06-20T16:20:22.163
I just read about ScriptPubKey spk and ScriptSign ss - so spk signs the output and with ss a user can unlock it to spend it - are both created by user A in my example? Is there independently another public key mechanism to show ownership? If yes, what actions does which of the systems take/secure. The ScriptSigns for each output are transmitted directly from one user to the next/the new owner (email/letter...)? – Hans Wurst – 2019-06-20T16:33:23.807
Just updated with more detail about the wallet software, which handles the creation of keys, transactions, and transaction signing. In your example, the coins that user A owns are encumbered by a scriptPubKey that was created by user A and received a transaction previously. Ownership is determined by providing a scriptSig that matches the scriptPubkey (which usually is a cryptographic signature, but doesn't have to be). The scriptsigs are added to the transaction data which is broadcast to the network via nodes. – JBaczuk – 2019-06-20T16:40:31.807
Thank you very much :) – Hans Wurst – 2019-06-20T17:16:34.807
of course! have fun learning more! – JBaczuk – 2019-06-20T17:21:27.430