Bitcoin Forum
June 24, 2024, 02:35:03 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 [2]
21  Other / Beginners & Help / Re: Some doubts about transactions validation on: January 14, 2020, 09:19:17 PM
Ah okay now I understand.
But I think I am missing this two point:
1)How do the other nodes validate the transaction between A and B?
2)Why do we have the OP_EQUALVERIFY? It permits to check the two pubkeys at the top of the stack, but why do we need to check them?

Thanks,
22  Other / Beginners & Help / Re: Some doubts about transactions validation on: January 14, 2020, 05:37:27 PM
Thanks, the thing that was confusing me was that you were referring to the Alice's previous transaction.
Having A->B transaction only B can spend, but every nodes of the network have to validate the transaction.
A and B execute this script <Sig> <PubKey> OP_DUP OP_HASH160 <PubkeyHash> OP_EQUALVERIFY OP_CHECKSIG  to validate the transaction and so permitting B to spend. What do other nodes do to validate A->B transaction?
23  Other / Beginners & Help / Re: Some doubts about transactions validation on: January 14, 2020, 10:36:23 AM

the sender broadcasts the transaction to the network. the receiver plays no role in broadcasting/propagating the transaction.


According to this: https://bitcoin.org/en/transactions-guide#introduction

Quote
Alice broadcasts the transaction and it is added to the block chain. The network categorizes it as an Unspent Transaction Output (UTXO), and Bob’s wallet software displays it as a spendable balance.

And

Quote
After putting his signature and public key in the signature script, Bob broadcasts the transaction to Bitcoin miners through the peer-to-peer network. Each peer and miner independently validates the transaction before broadcasting it further or attempting to include it in a new block of transactions.
24  Other / Beginners & Help / Re: Some doubts about transactions validation on: January 14, 2020, 08:11:55 AM
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?
The PoW algorithm validates a block made up of transactions, while the scripts validate transactions, I mean are they two different and separate things?




this may be helpful: https://bitcoin.stackexchange.com/questions/64455/how-blockchain-transaction-verification-takes-place

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,
25  Other / Beginners & Help / Re: Some doubts about transactions validation on: January 13, 2020, 05:19:48 PM
I don't understand, if the transaction is p2pkh from Alice to Bob and they have scripts to verify the transaction, how can other nodes verify the transaction? I mean the other nodes don't have the scriptPubKey and the scriptSig referring to Alice and Bob.

And referring to this
Quote
Another thing, after a block has a certain number of transaction the block is validated and inserted in the blockchain with the PoW algorithm?

The PoW algorithm validates a block made up of transactions, while the scripts validate transactions, I mean are they two different and separate things?
26  Other / Beginners & Help / Some doubts about transactions validation on: January 12, 2020, 08:54:39 PM
Good evening, I have some doubts about transactions validation. Always referring to this link https://bitcoin.org/en/transactions-guide#introduction
Quote
After putting his signature and public key in the signature script, Bob broadcasts the transaction to Bitcoin miners through the peer-to-peer network. Each peer and miner independently validates the transaction before broadcasting it further or attempting to include it in a new block of transactions.

If the transaction is between Alice and Bob with Alice as sender and Bob as receiver, after Alice checks the sign with OP_CHECKSIG operation, why, as stated above, the transaction has to be validated by every node of the network?

Another thing, after a block has a certain number of transaction the block is validated and inserted in the blockchain with the PoW algorithm?

Thanks,
27  Bitcoin / Development & Technical Discussion / Digital signature in Bitcoin on: January 12, 2020, 04:18:17 PM
The meaning of digital signature in Bitcoin can be summarize as "a digital signature can be used to unlock outputs, because it shows that we know the private key of an address"? Where the address refers to the receiver.

Following this guide https://bitcoin.org/en/transactions-guide#introduction I don't understand this:
Quote
the data Bob signs includes:
1) the txid and output index of the previous transaction
2)the previous output’s pubkey script
3) the pubkey script Bob creates which will let the next recipient spend this transaction’s output
4)the amount of satoshis to spend to the next recipient

I don't understand in particular these points:
2) Why do we need to sign previous output's pubkey script?
3) and 4) if this is the unlocking script  why do we need to sign things for next transactions?

Thanks,
28  Bitcoin / Development & Technical Discussion / Re: Some doubts about transaction on: January 12, 2020, 02:47:39 PM
Thanks for clarification. But another question, is p2pkh a smart contract?
29  Bitcoin / Development & Technical Discussion / Some doubts about transaction on: January 11, 2020, 08:28:15 PM
Hi everyone, after reading about Transaction at this link https://bitcoin.org/en/transactions-guide#introduction I have some doubts.
At the end Avoiding Key Reuse there is this:
Quote
In a transaction, the spender and receiver each reveal to each other all public keys or addresses used in the transaction. This allows either person to use the public block chain to track past and future transactions involving the other person’s same public keys or addresses.

If the same public key is reused often, as happens when people use Bitcoin addresses (hashed public keys) as static payment addresses, other people can easily track the receiving and spending habits of that person, including how many satoshis they control in known addresses.

It doesn’t have to be that way. If each public key is used exactly twice—once to receive a payment and once to spend that payment—the user can gain a significant amount of financial privacy.

I don't understand the last part about using public key only twice, in particular
Quote
once to receive a payment and once to spend that payment
I mean the public key isn't only used by the receiver to say the address towards which sending the payment? Why does the article say that the public key is used also by the sender, so by the spender?

Thanks,
Pages: « 1 [2]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!