Thanks for answering,
To get a clearer understanding of how transactions work, you should first think of it this way: bitcoin does not travel from Alice's wallet to Bob's wallet because Bitcoin was never in Alice's wallets to begin with. All that Alice has is the private key needed to spend an x amount of unspent transaction output (UTXO).
The blockchain that each full node keeps a copy of has the information of every single unspent outputs out there. Alice creates scriptSig to prove her ownership of that amount of bitcoin she wants to send and creates scriptPubKey which is in simple English is Bob's public key hash so that amount of UTXO can only be spent by Bob.
I don't understand why you're talking about Alice's private key and scriptSig if the transaction is between Alice and Bob, I mean in every guide I read there is a transaction between Alice and Bob and Alice has the scritpPubKey and Bob has the scriptSig.
I think you're saying about that before Alice can send bitcoin to Bob, she has to receive bitcoin from another transaction for example a transaction Cindy-Alice and so Alice has the private key to spend UTXO, are you referring to this?
I read the article and I don't understand this "their software will use the private key of an unspent output (a 'bitcoin') to cryptographically sign the transaction. This signature proves ownership of the unspent output, and authorizes movement of the coins."
It says that the transaction is signed by utxo, but the sign is in the scriptSig so in the input..
And the other thing I don't understand is this:
A transaction between A (sender) and B (receiver), so A and B have the scripts and using op_checksig the transaction is validated. In which way the other nodes validate the transaction? I mean then B broadcasts the transaction and the transaction is received by C and now B and C have the scripts. I don't know if I explained me clearly.
Thanks,