Transaction verification in Blockchain

0 votes

Let us consider that we have an AltCoin named ABCCoin, ABC. I will be referred to as X, mined a block and got a freshly minted 25 ABC as a mining reward. Now, I want to gift this coin to a friend Y. So,

Tx: X -> Y : 25ABC

And let us assume that this was stored in block B100. Now after some months, Ms Y wants to transfer it to Z for any reason. So,

Tx: Y -> Z : 25ABC

Now, a few months later. Mr Z wanted to buy a coffee in Starbucks while going on a date with his girlfriend.

Now the chain of transcation will be as below:

|Tx|Minted -> X | --> "Tx: X -> Y : 25ABC" --> "Tx: Y -> Z : 25ABC" --> "Tx: Z -> Starbucks : 25ABC"

So, in this situation. When we need to verify "Tx: Z -> Starbucks: 25ABC" do we have to trace it back the origin, i.e. to the point when this coin was minted OR can it be just verified just by checking its immediate source. i.e. "Tx: X -> Y : 25ABC" and dont care about other previous.

Apr 7, 2022 in Blockchain by Rahul
• 9,680 points
1,008 views

1 answer to this question.

0 votes

Assuming You are asking about UTXO transaction based blockchains like bitcoin.

There are 2 types of verification

  1. FullNode Verification

  2. SPV Verification

Full node

A full node is a program that fully validates transactions and blocks such as bitcoin, lite coin or geth. So every time a full node receives a new block from another peer, It does validate all transactions in the block and adds to its blockchain and updates a list of UTXOs only if the block is fully valid.

to validate transactions, the full node checks something like

  • Transaction format

  • Transaction signature(s)

  • find Previous transactions from its blockchain

  • Double-spending transaction existence

Because a full node has a list of UTXOs that it believes is correct, checking transaction format/signatures and the list of UTXOs are enough to validate new transactions.

For SPV client doesn't have full blockchain data nor a list of UTXOs, SPV checks only if a transaction is in a block using MerkleTree and block which contains the transaction satisfies block difficulty or not. And this is all SPV can check because It has to check all block header and block bodies one by one to create the UTXOs list.

answered Apr 11, 2022 by Soham
• 9,710 points

Related Questions In Blockchain

0 votes
1 answer

How to understand transaction verification in blockchain

They said it takes about 10 minutes ...READ MORE

answered Jul 17, 2018 in Blockchain by aryya
• 7,460 points
1,152 views
0 votes
1 answer

Transaction Verification in Blockchain

Yes if your transaction was lucky enough ...READ MORE

answered Sep 5, 2018 in Blockchain by Christine
• 15,790 points
586 views
0 votes
1 answer

How a transaction validity is verified in blockchain?

Blockchain has the records the of all ...READ MORE

answered May 11, 2018 in Blockchain by Johnathon
• 9,090 points
734 views
0 votes
1 answer

How can I retrieve to and from address in transaction directly from blockchain?

The spending conditions, i.e., who is able ...READ MORE

answered Jul 11, 2018 in Blockchain by Shashank
• 10,400 points
1,308 views
+1 vote
1 answer

Protocols used in a distributed/dlt system for the nodes to establish communication

yes all are over TCP/IP connections secured ...READ MORE

answered Aug 6, 2018 in Blockchain by aryya
• 7,460 points
1,426 views
0 votes
1 answer

Truffle tests not running after truffle init

This was a bug. They've fixed it. ...READ MORE

answered Sep 11, 2018 in Blockchain by Christine
• 15,790 points
1,922 views
0 votes
1 answer

Hyperledger Sawtooth vs Quorum in concurrency and speed Ask

Summary: Both should provide similar reliability of ...READ MORE

answered Sep 26, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
1,451 views
0 votes
1 answer

How can merkle trees help validate the content of a block in a blockchain

As long as they are centralized entities ...READ MORE

answered Feb 28, 2022 in Blockchain by Soham
• 9,710 points
979 views
0 votes
1 answer

Why is Proof of Work necessary in Blockchain?

You are missing the double-spending problem. If ...READ MORE

answered Apr 12, 2022 in Blockchain by Soham
• 9,710 points
541 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP