区块链、定义、结构、共识机制、智能合约

资讯 2024-06-19 阅读:122 评论:0
区块链(BlockChain)Block Chain (Block Chain) 定义:区块链是一个共享的、不可变的分类帐,用于记录交易、跟踪资产和建立信任。本质上是一个去中心化的分布式账本数据库...
美化布局示例

欧易(OKX)最新版本

【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   全球官网 大陆官网

币安(Binance)最新版本

币安交易所app【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   官网地址

火币HTX最新版本

火币老牌交易所【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   官网地址

区块链(BlockChain)

Block Chain (Block Chain)

定义:区块链是一个共享的、不可变的分类帐,用于记录交易、跟踪资产和建立信任。本质上是一个去中心化的分布式账本数据库,其本身是一串使用密码学相关联产生的数据块,每一个数据块上包含了多次比特币网络交易有效的确认信息。

Definition: The block chain is a shared, variable ledger for recording transactions, tracking assets and building trust. In essence, it is a decentralised distributed account database, which itself is a series of data blocks generated by cryptography, each containing valid confirmation information for multiple Bitcoin network transactions.

共享的理解:它要求我们所有的人共用同一本账本。所有的参与方从原材料的第一步一直到最终的使用者、消费者、买单者每个人都可以去查看账本。它是全透明的、有距离的、不可修改的、不可删除的。

Shared understanding: It requires all of us to share the same account book. Each participant can go from the first step of the raw material to the end user, consumer, buyer. It is transparent, remote, unalterable and undeletable.

现在网上购物的时候,如果说除了整个快递和支付的过程,自己也可以跟踪,对于商品的起源、生产的源头都可以追溯的话,那么就可以解决消费时候的疑虑。有一些乳制品企业现在已经在做这方面的尝试了,这是从消费者的角度

Now, when we're shopping online, if we can track the whole delivery and payment process by ourselves, and if we can trace the origin of the goods and the origin of the production, then we can solve the concerns about the consumption. Some dairy companies are now trying to do this, from the consumer's point of view.

不可变的理解:不能随意更改数据。例如商品的例子。hash算法,给任意一个文件生成了一串固定长度的乱码一样的标签,算法是不可逆的,就是说,你拿到这个标签,无法反向推导出原来的数据文件。正是这种不可逆性,决定了区块链的不可更改性。每个区块中,除了十分钟内的转账交易数据之外,还有一个区块头。区块头包含了对上一个区块数据的 hash 值。这些 hash 层层嵌套,长度固定,最终将所有区块串联起来,形成区块链

Irreversible understanding: Data cannot be changed at will. Examples of commodities, for example. Hash algorithms, which produce a series of random labels of fixed lengths for any one file, are irreversible, meaning that you have this label and cannot invert the original data files. It is this irreversibility that determines the non-changeability of the block chain. In each block, in addition to the transfer transaction data within 10 minutes, there is a block. The block head contains the hash value of the data of the previous block. These hash layers are embedded, fixed in length, and eventually all blocks are bound together to form a block chain.

去中心化的理解:

Let's get to the bottom of this:

中心化与去中心化的对比(谁拥有记账权)

Centralization versus decentralization (who has rights to account)

1.中心化机构拥有公认”记账权”

1. Centralized institutions have recognized “account rights”

 

2.去中心化的区块链网络所有人具有”记账权”

The owner of the decentralised block chain network has the “right to account”

 

区块链是什么的例子:https://www.bilibili.com/video/BV1J7411Z7T9?from=search&seid=5524688675302547308

What is the example of the block chain:

 

 

区块链的结构:

Structure of the block chain:

一个完整区块是由神奇数、区块大小、数据区块头部信息、交易计数、交易详情等组成。在这当中,数据区块头部信息的HASH值是下一个新区 块的HASH值的参考目标数,最后一项交易详情记录了该区块中所有的交易记录。

A complete block consists of magic numbers, block size, data block head information, transaction counts, transaction details, etc. In this case, the HSH value of the data block head information is the reference number for the HSH value of the next new block, and the last transaction details record all transactions in the block.

区块头由4字节的版本号、32字节的上一个区块的散列值、32字节的Merkle Root Hash、4字节的时间缀、4字节的当前难度值、4字节的随机数 组成。区块包含的交易列表则附加在区块头后面,其中的第一笔交易是coinbase交易,这是一笔为了让矿工获得奖励及手续费的特殊交易。 见图示:

The block header consists of a version number of four bytes, a hash value of the previous 32 bytes, a 32 byte Merkel Root Hash, a 4 byte suffix, a 4 byte current difficulty value, and a 4 byte random number. The block contains a list of transactions that are attached to the block head, the first of which is a coinbase transaction, which is a special transaction to give miners incentives and fees.

 

 

 

链式结构

Chain structure

矿工挖矿的过程 就是产生新的数据区块的过程,这个过程需要对比前一个数据区块头部的HASH值和随机数,如

The process of mining by miners is the process of generating new data blocks that require comparison of HSH values and random numbers on the head of the previous data block, such as:

美化布局示例

欧易(OKX)最新版本

【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   全球官网 大陆官网

币安(Binance)最新版本

币安交易所app【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   官网地址

火币HTX最新版本

火币老牌交易所【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   官网地址
文字格式和图片示例

注册有任何问题请添加 微信:MVIP619 拉你进入群

弹窗与图片大小一致 文章转载注明

分享:

扫一扫在手机阅读、分享本文

发表评论
平台列表
美化布局示例

欧易(OKX)

  全球官网 大陆官网

币安(Binance)

  官网

火币(HTX)

  官网

Gate.io

  官网

Bitget

  官网

deepcoin

  官网
热门文章
  • 支付領域投下震撼彈!美國數位銀行Chime疑與GuardPay 神盾支付合作!

    支付領域投下震撼彈!美國數位銀行Chime疑與GuardPay 神盾支付合作!
    2020年,新冠肺炎(COVID-19)疫情加速數位貨幣進展。例如:2019年4月,國際清算銀行(BIS)的調查顯示,在全球66家中央銀行中,沒有一家計畫發行跨境支付的數位貨幣。惟到了2020年10月,BIS支付委員會主席康利夫(Jon Cunliffe)指出,肺炎疫情拉高民眾對無現金支付的需求,迫使各國加快數位貨幣的研發進程日本與韓國於2021年進入數位貨幣試驗階段。直到2019年12月,美國聯邦準備理事會(Fed)都尚無數位貨幣規劃,惟到了2020年2月,Fed已開始研擬...
  • 区块链:交易系统开发指南

    区块链:交易系统开发指南
    播报编辑《区块链:交易系统开发指南》使用通俗易懂的语言,从技术的角度详细介绍了区块链交易系统应有的功能架构及工作原理,让人们能够张开双臂轻松地拥抱区块链技术,享受区块链交易系统带来的惊喜与成就感。《区块链:交易系统开发指南》共分 7 章,第 1~2 章主要介绍区块链及数字货币的基本概念,以及各种公有链的 API 接口;第3~5 章主要介绍区块链交易系统的分类架构及功能; 6 章主要介绍区块链交易系统面临的问题及演进方向;第 7 章对全书做了总结。《区块链:交易系统开发指南》是...
  • 5.14加密货币价格:BTC突破6.2万美元以太坊和山寨币反映市场情绪

    5.14加密货币价格:BTC突破6.2万美元以太坊和山寨币反映市场情绪
    今天,随着比特币(BTC)的价格突破62 000美元的门槛,顶级加密货币的价格反弹了。 此外,以铁大幅上涨,维持在2 900美元的水平。 此外,其他顶尖山硬币,如索拉纳(SOL )、XRP、卡达诺(ADA )也大幅上涨。    今天密钥加密货币价格 1. 比特币价格    在5月14日星期二撰写本文时,比特币价格上升了2.57%,达到62 487.50美元。 另一方面,在过去24小时内,交易量从65.26 % 急剧上升至277亿美元。 与此同时,加密货币的市场价值为...
  • OKEx回应用户质疑:合约交易非期货 平台无机器人

    OKEx回应用户质疑:合约交易非期货 平台无机器人
       热点点 自选股份 数据中心 数据中心 研究和资料中心 资金流动 模拟交易 客户客户 具体来说,OKEx回答用户的问题:合同交易不是期货,平台不是机器人。 金融同步化,3月22日。    昨天下午,OKEx公司就维护先前用户线下的权利问题对同步财务公司作出了回应,指出OKEx公司提供的合同交易不是期货交易,在旗下的业务中没有正式的机器人。 同时,OKEX称,它不会以非法为由对任何投资损失索赔作出答复。 答复全文如下: 同步你的财务! 近日来,...
  • 0.00006694个比特币等于多少人民币/美金

    0.00006694个比特币等于多少人民币/美金
    0.00006694比特币等于多少人民币?根据比特币对人民币的最新汇率,0.00006694比特币等于4.53424784美元/32.5436 16人民币。比特币(BTC)美元(USDT)人民币(CNY)0.000066944.53424784【比特币密码】32.82795436 16比特币对人民币的最新汇率为:490408.64 CNY(1比特币=490408.64人民币)(1美元=7.24人民币)(0.00006694USDT=0.0004846456 CNY)汇率更新时...
标签列表