Bitcoin Forum
May 11, 2024, 04:04:48 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 »  All
  Print  
Author Topic: Question about Bitcoin with merit awards - block linkage in the blockchain  (Read 355 times)
This is a self-moderated topic. If you do not want to be moderated by the person who started this topic, create a new topic.
Jet Cash (OP)
Legendary
*
Offline Offline

Activity: 2716
Merit: 2456


https://JetCash.com


View Profile WWW
June 29, 2018, 09:15:56 AM
Last edit: June 29, 2018, 02:05:43 PM by Jet Cash
 #1

Here we go with another merit giveaway thread. Once again the awards are to be given to new and junior members only. The thread will be self-moderated, and when one topic is answered, I'll add another topic. Spamming and very low value answers will be deleted. All replies must be original, and not copied from other sources. If you don't know the answer, then Google the question and read about it. When you think you understand the topic, then post the answer in your own words. So here is the first question.

The Bitcoin blockchain is constructed from a sequence of linked blocks. Please explain how the blocks are linked

Thread restarted because i forgot to make it self-moderated. The merit awards will be in the range of 1 - 5 based on the comprehensiveness ofyour answers.

Offgrid campers allow you to enjoy life and preserve your health and wealth.
Save old Cars - my project to save old cars from scrapage schemes, and to reduce the sale of new cars.
My new Bitcoin transfer address is - bc1q9gtz8e40en6glgxwk4eujuau2fk5wxrprs6fys
1715400288
Hero Member
*
Offline Offline

Posts: 1715400288

View Profile Personal Message (Offline)

Ignore
1715400288
Reply with quote  #2

1715400288
Report to moderator
The forum was founded in 2009 by Satoshi and Sirius. It replaced a SourceForge forum.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715400288
Hero Member
*
Offline Offline

Posts: 1715400288

View Profile Personal Message (Offline)

Ignore
1715400288
Reply with quote  #2

1715400288
Report to moderator
KaZZZaK
Newbie
*
Offline Offline

Activity: 29
Merit: 1


View Profile
June 29, 2018, 10:04:07 AM
Merited by Jet Cash (1)
 #2

If I understood the question right, answer will be: each new block has the hash of previous one within. What is hash? As I understand it, without all functions and math stuff, it`s a big set of symbols, which is calculated based on such set of previous block and special algorithm. So hash is the key.
Jet Cash (OP)
Legendary
*
Offline Offline

Activity: 2716
Merit: 2456


https://JetCash.com


View Profile WWW
June 29, 2018, 10:20:36 AM
 #3

I gave you a merit for that post. It's a pretty generalised basic explanation, so there is still plenty of scope for members to expand on it.

Offgrid campers allow you to enjoy life and preserve your health and wealth.
Save old Cars - my project to save old cars from scrapage schemes, and to reduce the sale of new cars.
My new Bitcoin transfer address is - bc1q9gtz8e40en6glgxwk4eujuau2fk5wxrprs6fys
BanishedDemon
Jr. Member
*
Offline Offline

Activity: 49
Merit: 8


View Profile
June 29, 2018, 10:30:10 AM
 #4

Each block carries a specific quantity of transactions and a hyperlink to the preceding block. This is the thing that connected one block after the others in time. Blocks are therefore organized right and fully secure with those SHA / HASH ( Algorithm Stuff ).

Every node can group transactions collectively right into a block and broadcast it to the network that offers the name to the entire machine ultimate system known as blockchain.



lhung
Newbie
*
Offline Offline

Activity: 296
Merit: 0


View Profile WWW
June 29, 2018, 10:36:48 AM
 #5

Block is a field 80 byte. The following section of information is the number of transactions in the blocks and the primary transaction.
A common transaction on 250 bytes option to the type of the multi transaction transactions to be used to be more than that the requirements of the standard - you can see more about other transaction types here here. A average block contains the 500 transaction transactions - equivalent with less a transaction / seconds.
KaZZZaK
Newbie
*
Offline Offline

Activity: 29
Merit: 1


View Profile
June 29, 2018, 10:38:04 AM
 #6

I gave you a merit for that post. It's a pretty generalised basic explanation, so there is still plenty of scope for members to expand on it.
Thanks a lot  Smiley Wasn`t sure that all technical detailes needed, so I tried to simlify. Should I make an answer deeper or allowing others to participate will be a better call?
I think, establishing/explaining some rules in first post may be appropriate. For exaple, can a person answer one question multiple times and if yes - which amount of  posts is allowed etc.
Jet Cash (OP)
Legendary
*
Offline Offline

Activity: 2716
Merit: 2456


https://JetCash.com


View Profile WWW
June 29, 2018, 10:51:18 AM
 #7

Here is a bit of clarification then. The rules -

- No spam
- No plagiarism.
 - Newbies and beginners only
- You can correct previous posts if you think they are wrong - for example, miners are the guys who insert transactions into blocks
- Please stay on topic - this question is about block linking, and not about block composition in general
- You can make more than one post, but all posts must be beneficial for the board, and helpful for new Bitcoiners.

Offgrid campers allow you to enjoy life and preserve your health and wealth.
Save old Cars - my project to save old cars from scrapage schemes, and to reduce the sale of new cars.
My new Bitcoin transfer address is - bc1q9gtz8e40en6glgxwk4eujuau2fk5wxrprs6fys
nitrocryptonitro
Jr. Member
*
Offline Offline

Activity: 83
Merit: 1


View Profile
June 29, 2018, 10:57:24 AM
 #8

I'll try to add a little bit on that answer.
As it was previously mentioned, a new mined block contains, within its header, the hash of the precedent block.

If we look closer to the block, we can also find, still within the header, Merkle tree root.
Basically, a Merkle tree is a binary tree, whose lowest level nodes are transactions, and whose intermediary level nodes are, either sum hashes of intermdiary nodes, either transactions hashes.

Basically, a BTC transaction is made of 2 transactions: the one that is required by the spender, and what is called the UTXO (Unspent Transaction Output).
An UTXO is what is left to someone who spent BTC, and every BTC nodes keeps a copy of all the UTXO.

So we have seen here that basically, BTC blocks are either linked together by containing previous block hash, but they are either linked together at the level of transactions, and more precisely at the level of UTXOs.
JohnnyBobby
Newbie
*
Offline Offline

Activity: 100
Merit: 0


View Profile
June 29, 2018, 11:43:01 AM
 #9

I'm a bit of a noob to blockchain in general but I'll do my best to simplify it for those who are just starting out in this wonderland.

The blockchain is at its most basic form, a ledger. This ledger keeps track of transactions which are linked together (the blocks).
Every change to the ledger (incoming or outgoing crypto transactions) is signed to prove that the person actually owns the coins.
This ledger is also stored on every miner's computer so there can be no discrepancies. The beauty of the system is no-one needs to know the identity of where their transaction went. A person withdraws btc from their wallet, the transaction is sent onto the blockchain, and a short period of time later, it arrives at the destination. The allure is the decentralized nature of the beast, no banks to pass throughor looking up SWIFT codes, days waiting for funds to be accepted if in another country, it's virtually anonymous.

Hope this clears it up a bit, good luck on starting out on this journey, sometimes I really do feel like Alice in Wonderland, the potential for Blockchain is just starting to be realized but it's definitely a future prospect for many companies.
beurk
Jr. Member
*
Offline Offline

Activity: 153
Merit: 1


View Profile
June 29, 2018, 11:56:51 AM
 #10

As the first guy that answered your question, the blocks are linked together by the hash of the previous one (parents hash) and the newest one to the first ever created (the genesis block). Merkle trees are used here (just like Ethereum) to store the transaction stuff into a block.


Don't ask me to go on a tech explanation with a lot of complicated words or terms Wink
darkie199
Jr. Member
*
Offline Offline

Activity: 294
Merit: 9


View Profile
June 29, 2018, 11:59:24 AM
 #11

The last node of the block contains the address of the next block. So at the end of the node the block checks the value and jumps to the address of the next block which has been mentioned.
Maybe i draw a small example ?

Michael CF
Jr. Member
*
Offline Offline

Activity: 178
Merit: 3


View Profile
June 29, 2018, 12:27:28 PM
 #12

I think each block contains a hash of its previous block. In bitcoin blockchain, the block header has a field for previous block hash. Hence, all blocks will contain a reference of its previous block, and this could build up a chain of blocks.
KaZZZaK
Newbie
*
Offline Offline

Activity: 29
Merit: 1


View Profile
June 29, 2018, 12:33:16 PM
Last edit: June 29, 2018, 02:36:13 PM by KaZZZaK
 #13

So. To understand how blocks in Bitcoin`s blockchain are linked, we should look into a structure of block itself. Let`s imagine, that each block is a text document with a set of fields. Now, we can say, that each block consists of 5 components (5 fields) :
Magic number (value always 0xD9B4BEF9)
Blocksize        (number of bytes following up to end of block)
Blockheader  (we`ll look into it below in details)
Transaction counter (a number)
Transactions (the list of transactions)
In our case, we are interested in 2 of them (except Blocksize, Transaction counter (I just don`t know what it`s used for Grin) and Magic number (last one is constant, as far as I know)). Though the most important magic lives in blockheader, we can say that list of transactions are making connection between blocks too (mostly, because one of the key fields of header is formed on the ground of this list). Also list of transaction contains info about who had an honor to generate this block, info about transaction fee etc. and a little bit of stuff, nitrocryptonitro was writing above. It is very important field.
Let`s talk about header now. It contains of 6 fields:
Version             (Block version number. it`s about software, don`t really interesting for us now)
hashPrevBlock   (hash of the previous block header)
hashMerkleRoot (hash based on a list of block`s transactions)
Time                 (time of generating)
Bits                  
Nonce               (number, which value is set in a way, that hash of the block will contain a run of a leading zeros. As I understand, calculating this one is one of the most important things that miners do)
Anyway, we are more interested in those, painted red. As I understand, hashMerkleRoot of block #1 is becoming hashPrevBlock for the next one (#2) and it goes on and on. So, that`s how all blocks are chained one to another.
There is also Height of the block or it`s ordinal number. You can check current block`s Height here http://blockexplorer.com/q/getblockcount. Height of the block is a number of blocks, that was generated before it.
Now, lets explain what a hash is a little bit, just so you can understand what does this word mean. In simple words, it`s a function that can take an input data of any size and with the help of mathematical operations return output data of a fixed size. It`s something like ZIP archives in world of math, if you remember those. Imagine, how much info a list of transactions contains, and you`ll undestand why Bitcoin needs a special tools to ZIP it.
Hope It`ll help somebody to understand a little bit this complicated stuff.
P.S.I`m not an expert in this matters, so feel free to fix my mistakes if you find any.
nitrocryptonitro
Jr. Member
*
Offline Offline

Activity: 83
Merit: 1


View Profile
June 29, 2018, 01:12:17 PM
 #14

There's something I want to add, but I'm almost certain I will have dificulties to explain it.

The question is "explain how the blocks are linked".

That made me ask to myself that other question: Explain how certain blocks aren't linked together.

That last question leads to the matter of multiple nodes mining a different block at the same time and spreading their own block in the BTC network.

Only one can be used by the network, otherwise, that would be a case of double-spending (when someone can spend twice its BTC because there are 2 versions of the blockchain tail).

To solve that problem, BTC blockchain is designed to choose the longest blockchain available.

In a way, we can say that this characteristic of BTC blockchain allows certain blocks to be linked together, and other ones to be discarded.

Am I off the subject, or not? I'm not completely sure...
Jet Cash (OP)
Legendary
*
Offline Offline

Activity: 2716
Merit: 2456


https://JetCash.com


View Profile WWW
June 29, 2018, 01:33:18 PM
 #15

I wondered if somebody would introduce orphan blocks. Smiley

It's become quite an interesting discussion, and I'll reread the posts shortly. I'm also thinking of opening the thread to senior members once the post count has passed 50.

Offgrid campers allow you to enjoy life and preserve your health and wealth.
Save old Cars - my project to save old cars from scrapage schemes, and to reduce the sale of new cars.
My new Bitcoin transfer address is - bc1q9gtz8e40en6glgxwk4eujuau2fk5wxrprs6fys
darkie199
Jr. Member
*
Offline Offline

Activity: 294
Merit: 9


View Profile
June 29, 2018, 01:39:42 PM
 #16

I wondered if somebody would introduce orphan blocks. Smiley

It's become quite an interesting discussion, and I'll reread the posts shortly. I'm also thinking of opening the thread to senior members once the post count has passed 50.

Orphaned blocks are valid blocks which are not part of the main chain. They can occur naturally when two miners produce blocks at similar times or they can be caused by an attacker (with enough hashing power) attempting to reverse transactions.
KaZZZaK
Newbie
*
Offline Offline

Activity: 29
Merit: 1


View Profile
June 29, 2018, 01:55:27 PM
 #17

I wondered if somebody would introduce orphan blocks. Smiley

It's become quite an interesting discussion, and I'll reread the posts shortly. I'm also thinking of opening the thread to senior members once the post count has passed 50.

Orphaned blocks are valid blocks which are not part of the main chain. They can occur naturally when two miners produce blocks at similar times or they can be caused by an attacker (with enough hashing power) attempting to reverse transactions.
OK, now I`m tempted to write about 51% attack and why one big mining pool sometimes need to split Smiley
vphasitha01
Full Member
***
Offline Offline

Activity: 196
Merit: 172


View Profile
June 29, 2018, 03:15:39 PM
 #18

The Bitcoin blockchain is constructed from a sequence of linked blocks. Please explain how the blocks are linked

I think "hash of the previous block" and "hash of the block" is the key two elements when we talking about how the blocks are linked in a blockchain. Every block in a block chain has a hash. It's like a finger print. It identify the block and all it's content and it's always unique just as like fingerprint. Once a block is created it's hash is calculated. Changing something(data) inside the block will cause hash to change, in other other words we can say hashes are very useful when you want to detect changes in the block. If the fingerprint of a block changes, it no longer the same block. Another important element of a block is the hash of previous block. This is what effectively creates the chain of block. I think following figure will explain more clearly what I have explained.( Actually that's what I got understand regarding linking of blocks of blockchain)


sunriseme
Newbie
*
Offline Offline

Activity: 29
Merit: 4


View Profile
June 29, 2018, 04:04:30 PM
 #19

Blocks are linked by many characteristics, some unique, some not: time, transactions details, hash, signature details, block height...
Blockchain allows the transactions to be validated across the Bitcoin network
through a peer to peer type of involvement - meaning any individual can participate in the validation of these transactions.
To participate in this p2p and support the blocks, there are conditions: one needs to have enough electricity and computational power to resolve the complex calculations that
will validate the signatures of the transaction (secure hash algorithm).
Once validated, is sent to the other peers who will take it from there and make new calculations.
After everything is validated and transaction sent across the network, a new block was added to the blockchain.
Blocks are linked by many complex features, not sure if most of the miners can explain in detail how blocks are linked, I for sure cannot.
petyang12
Member
**
Offline Offline

Activity: 352
Merit: 10


View Profile
June 29, 2018, 05:16:16 PM
 #20

As far as I understand the blocks are linked through the previous hash block that is saved on the block header. The block header has a unique identifier called the block header hash, and inside the block header we can find three main components. The three components of block header as follows:

• Previous Block Hash (which means that the hash will be linked through the block header because the previous block is one of the blockheader components)

Each Previous Block Hash has only one parent to identify.
Let me discuss it in simple way the IDENTITY of the father will be embedded on the child’s IDENTITY to the next child and so on.

• Timestamp, Difficulty and Nonce (This is for mining)

• Merkle Tree Root
Since the header hash is not stored on block structure and then it is obtained by double hashing the block header by using algorithm and that is SHA256 algorithm used for bitcoin since there are other popular algorithm such as SCRYPT.

▀▀▀▀▀▀▀▀▀▄ ▀▀▀▀▀▀▄ ▀▀▀▄     T F S     ▄▀▀▀ ▄▀▀▀▀▀▀ ▄▀▀▀▀▀▀▀▀▀
Move Your Game To The Next Level
[    TG GROUP    ]  [  TG CHANNEL  ]  [     TWITTER     ]  [     MEDIUM     ]
Pages: [1] 2 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!