分享

关于泰山众筹系统开发模式分析及逻辑策略方案讲解

 uesyz477 2022-08-29 发布于广东

  然而,由于区块链消除了中心化机构的存在,所有的交易必须得到强有力的保护,数据必须安全地存储在分布式账本上。分布式账本技术(DLT)基于预先设定的协议,通过网络(或节点)上的不同计算机达成“共识”来验证交易数据。每个节点在条目出现时进行添加、检查和更新。

  区块链有一个分层的架构,以促进这种独特的交易身份验证方式。这涉及到五层,每一层都有其独特的功能。

  客户端在浏览网页或使用任何应用程序时向应用服务器请求内容或数据,这被称为客户端-服务器架构。客户端现在可以与对等客户端连接并共享数据。点对点(P2P)网络是一组共享数据的大型计算机。

  The blockchain data is securely stored in the data server.When we browse the web or use any blockchain application,our machine requests access to this data from the server.The framework that facilitates this data exchange is called client server architecture.It is just a huge network of devices that communicate with each other and request data from each other.This is how the distributed ledger is created.Each device communicating with another device in the network is a node.Each node randomly verifies the transaction data.

  数据层:区块链数据结构和物理存储层。该账本使用链表或默克尔树(Merkel tree)构建,开发详细:I80-2857-8624这些链表或默克尔树使用非对称加密进行加密。

  Merkle树对区块链数据进行了高效、安全的编码。它支持对区块链数据的快速验证,以及在点对点区块链网络上将大量数据从一个计算机节点快速移动到另一个计算机节点。

  区块链不过是包含交易数据的一长串“区块”。当节点验证一定数量的交易时,数据被绑定到一个“区块”中,随后添加到区块链里,并与前一个数据区块连接。“创世区块”是链中的第一个区块,因此不需要与任何之前的区块进行链接。相反,后续的区块需要与“创世”区块连接,每次添加新的区块时,这个过程都会被重复。这就是区块链如何形成并持续增长的。

  Each transaction is"digitally signed"with the private key of the sender's wallet.Only the sender can access this key to ensure that the data will not be accessed or tampered with by anyone.This is called"termination"in blockchain terminology.Digital signature also protects the identity of the owner,which is itself encrypted to ensure maximum security.

  ETH网络,或第一层,是人们在说ETH时暗指的。这一层负责协商过程、编程语言、区块时间、争议解决以及维护区块链网络基本功能的规则和参数。它也被称为实现层。

  P2P框架允许各个节点交换交易数据,从而就交易的有效性达成共识。这意味着每个节点必须能够发现网络上的其他节点,以便快速通信。正是网络层促进了这种“节点间通信”。由于节点发现、区块创建和区块添加也由这一层管理,它也被称为“传播层”。

  共识层是任何区块链中最必要和最关键的层,无论它是ETH、Hyperledger或其他。共识层负责验证区块,对它们进行排序,并确保每个人都同意。

  This is the most critical layer in the blockchain operation.This layer is responsible for verifying transactions.Without it,the whole system will crash.The protocol running at this layer requires a certain number of nodes to verify a transaction.Therefore,each transaction is processed by multiple nodes,and then these nodes must get the same result and agree on its validity.This framework maintains the decentralized nature of the blockchain,because no node can independently control any transaction data,and the role is distributed.This is called the consensus mechanism.

  由于有这么多节点处理交易,将它们捆绑起来,并将它们添加到区块链,因此可能会同时创建多个区块,从而在区块链中产生一个分支。然而,必须总是有一个单一链区块添加,并且共识层也确保这个冲突被解决。

  智能合约、链码和去中心化应用程序(Dapp)构成了应用层。应用层协议进一步细分为应用层和执行层。应用层包括终端用户用来与区块链网络通信的程序。

  dapp还促进了用户设备和区块链之间的通信。因此,应用程序类似于面向用户的前端,而主区块链是后端,数据在这里安全地被存储。

  这5层的区块链帮助它顺利运作。然而,如果有一直在阅读有关区块链的知识,就一定也遇到过像layer-0、layer-1、layer-2等术语。那么这些层是什么呢?

  Layer 0 is the initial stage of the blockchain,allowing various networks(such as BTC,ETH,etc.)to operate.Layer 0 also provides cross chain interoperability communication functions from the top level to different layers for the blockchain.Layer 0 provides the underlying infrastructure for the blockchain.

  Layer 1 blockchain is a group of solutions,which improves the basic protocol itself and makes the whole system more scalable.There are two most common layer 1 solutions,which are consensus protocol change and sharding.This layer manages the protocols to ensure the security of the blockchain network.Layer 1 contains consensus mechanism,coding language and all rules embedded in the code for blockchain operation.Therefore,this is sometimes referred to as the"implementation layer".When users refer to BTC blockchain,they refer to this layer.

  Layer 2 refers to the auxiliary framework or protocol built on the existing blockchain system.The main objective of these protocols is to solve the transaction speed and expansion difficulties faced by major cryptocurrency networks.Layer 2 is a new network that handles all transaction authentication and layer 1 congestion.Layer 1 only handles the operations of creating and adding blocks to the blockchain.The new layer 2 network is located above the layer 1 network and continuously communicates with the layer 1 network.

  闪电网络就是BTC区块链上的第2层区块链的一个例子。

  第3层通常被称为应用层。它是一个承载Dapp和启用这些app的协议的层。虽然一些区块链,如ETH或Solana(SOL)有各种各样的第三层应用程序,但BTC并没有进行优化来托管这些应用程序。

  智能合约和dapp只处理第三层的决策和后续行动的执行。由于区块链的最大功能来自于dapp的创新,因此这一层是实际应用程序和底层之间的接口层,底层实现一切。

    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多