简体   繁体   English

Blockchain是一个单一的链表吗?

[英]Is Blockchain a single linked list?

Seen as datatype, is Blockchain a single linked list? 看作数据类型,Blockchain是一个单一的链表吗? As each block refers to the previous block using a hash. 由于每个块使用散列引用前一个块。
Or is it some kind of tree? 还是某种树?

The way a blockchain is represented as a singly linked list. 区块链的表示方式是单链表。 Each block has a hash of the previous block which can be thought of as a pointer to previous block. 每个块都有前一个块的散列,可以将其视为指向前一个块的指针。

Some differences are that in a linked list, there are generally more operations for a linked list that are not available in a blockchain, most notably being able to remove a block and to add a block in the middle of the list/chain. 一些差异在于链接列表中,链接列表通常有更多的操作在区块链中不可用,最明显的是能够删除块并在列表/链的中间添加块。

In the bitcoin blockchain, and probably others, each transaction in the block is stored in a Merkle Tree . 在比特币区块链中,可能还有其他区块中,块中的每个事务都存储在Merkle树中 The blockchain is not a tree. 区块链不是树。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM