区块链技术与应用详解

资讯 2024-06-22 阅读:55 评论:0
美化布局示例

欧易(OKX)最新版本

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

APP下载   全球官网 大陆官网

币安(Binance)最新版本

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

APP下载   官网地址

火币HTX最新版本

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

APP下载   官网地址

区块链技术源于1991年斯图尔特·哈伯和W.斯科特·斯托内塔的研究,旨在打造一个无法篡改文档时间戳的系统。然而,直到2009年比特币的诞生,这一技术才真正走入现实世界。众所周知的"挖矿"过程,实际上是在寻找满足特定条件的nonce整数,确保以下不等式成立:

The block chain technology is derived from a 1991 study by Stuart Harper and W. Scott Stonetta, aimed at creating a system that cannot alter document timetamps. However, it was not until the birth of Bitcoin in 2009 that this technology really entered the real world. The well-known process of "mining" is actually looking for an integer of nonce that meets certain conditions, ensuring that the following variations are established:


本文旨在科普区块链与加密数字货币的基础知识,并阐述相关概念。

The aim of this paper is to provide basic knowledge of the Coptic block chain and the encrypted digital currency, and to elaborate on related concepts.


区块链,顾名思义,是由一系列通过链接(chain)组织起来的数据块(block),它是一种应用于公共数据库的分布式记账系统,主要用于加密数字货币(如比特币),被认为是互联网以来最重大的创新之一。每个区块主要包含以下三个要素:

The block chain, by definition, is a series of data blocks (block) organized by means of a link (chain), which is a distributed accounting system for public databases, mainly used to encrypt digital currencies (e.g. bitcoin) and is considered to be one of the most significant innovations since the Internet. Each block contains the following three main elements:


区块链技术与应用详解

交易详情,如日期、时间和金额等。


交易双方,信息以数字签名形式存在而非真实身份信息。


区块的独特标识(hash值),使其与其他区块区分开来。

The unique identification (hash value) of a block at separates it from other blocks.



在比特币区块链中,每个区块可容纳的最大数据量为1MB。

In the Bitcoin block chain, the maximum amount of data that each block can hold is 1MB.



交易需发生。实际操作中,一个区块通常包含多笔交易。

transactions need to occur . In practice, a block usually contains multiple transactions.


交易需审核验证。如同信用卡交易需核对签名或密码,区块链交易的合法性则由遍布全球的计算机网络实时核查,确保交易的时间、金额及参与方准确无误。

transactions require verification . As credit card transactions require signature or password checks, the legitimacy of block chain transactions is verified in real time by a worldwide computer network to ensure the exact timing, amount and participants of the transaction.


交易需储存于区块之中。交易核实后,相关信息会被存储至区块中,与其他数千笔交易共同构成区块内容。

When the transaction is verified, the relevant information is stored in the block, forming the content of the block together with thousands of other transactions.



当区块内的所有交易通过验证,也就是完成“挖矿”后,该区块将获得一个独一无二的标识符——hash值,继而被纳入区块链中。

When all transactions within a block are certified, i.e. “mining”, the block will acquire a unique identifier — the hash value — which will then be incorporated into the block chain.


钱包(wallet):是承载加密货币(如比特币)交易的应用程序,内含一对独特的密钥,即公钥和私钥,它们在初次交易时生成。

wallet (wallet): is an application carrying an encoded currency (e.g. bitcoin) transaction containing a unique set of keys, i.e. public and private, which are generated at the time of the initial transaction.


私钥:用于授权用户从账户中支出、提取或转移资产,并在交易广播到区块链网络前对其进行数字签名,以此证明私钥所有权。私钥须妥善保管,一旦丢失,钱包内的加密货币将无法找回(表现为64位由0-9或A-F组成的字符串,重要时可抄写在纸上并存放在保险箱中)。

private key: is used to authorize users to spend, withdraw or transfer assets from an account and to digitally sign a transaction before it is broadcast to the block chain network to prove ownership of the private key.


公钥:由私钥通过复杂算法衍生而来,且无法逆向推导出私钥。他人可通过公钥验证该数字签名确实出自私钥持有者的生成。交易验证合法后,资金将转账至接收者的公开地址。

Public Key : The private key is derived from a complex algorithm and cannot be exported in reverse. Others can verify that the digital signature is generated by the owner of the selfish key by the public key.


公开地址:由公钥经过哈希运算生成,类似于银行账号,交易时,发送者需要接收者的公开地址方可发送Token或加密货币,而接收者则可用其私钥消费或提取。

public address : The public key is generated through Hash, similar to a bank account, where the sender requires the public address of the recipient in order to send Token or encrypted currency, while the recipient may use its private key for consumption or extraction.




区块链技术采用以下三种手段保障安全与信任:

Block chain technology provides security and confidence by three means:


按线性时间顺序存储,即新区块总是追加至区块链尾部。截至2020年4月18日20:36,比特币区块链区块高度已超过626548。

stores in linear chronological order , i.e., new blocks are always added to the end of the block chain. As of 18 April 2020, the height of the Bitcoin block chain was more than 626548.


提升篡改、删除区块内容的难度,每个区块均包含自身及其前一个区块的哈希值。一旦某个区块内容被篡改,将导致后续所有区块的哈希值发生变化。黑客要掩饰这种改动,必须重新计算这些区块的哈希值,代价高昂,同时也因为每个区块在区块链网络中具有唯一高度,删除某一区块的操作变得几乎不可能。

increases the difficulty of tampering with and removing the content of blocks , each of which contains its own Hashi value and that of the previous block. Once the content of a block is tampered with, it will lead to a subsequent change in the Hashi value of all blocks. To disguise this change, hackers have to recalculate the Hashi value of these blocks at a high cost, and because each block has its only height in the network of blocks, it becomes almost impossible to delete a block.


共识模型验证,区块链网络要求用户计算机解决复杂数学问题以证明自身资质,当某计算机成功解决问题,便有权向区块链中添加新区块。然而,直至2020年4月,比特币网络中解决这类问题的概率仅为约15.5万亿分之一,为此,计算机需耗费大量电力运行相应程序。

The consensus model validates that the network of blocks requires user computers to solve complex mathematical problems to prove their qualifications, and that when a computer successfully solves problems, it has the right to add new blocks to the chain of blocks. However, as of April 2020, the probability of resolving such problems in the Bitcoin network is only about one-fifth trillion, for which the computer will have to run the corresponding programs with a large amount of electricity.




工作量证明(Proof of Work,PoW)是众多加密货币的基础机制,它构建了一个系统,要求参与者付出一定但可实施的努力来防止滥用计算资源。

Workload certification (Proof of Work, PoW) is the foundation mechanism for numerous encrypted currencies, and it builds a system that requires participants to make certain but implementable efforts to prevent misuse of computing resources.

为一组比特币交易生成随机哈希值对现代计算机来说非常简单,于是,为使之成为一个更加实质性的任务,比特币网络设置了难度级别,即设定目标值(target)。目标值越低,生成有效哈希值的范围就越小,相应生成难度越大。矿工们通过调整一个一次性使用的整数(nonce)以改变输入数据,找到一个符合目标值的有效哈希值后,会将其广播至网络,并将区块添加至区块链,而成功找到nonce整数的矿工会获得相应的加密货币奖励,这个nonce整数即为需解决的数学难题。

By adjusting a one-time integer (nonce) to change input data, by finding an effective Hashi value that meets the target value, the miners will broadcast it to the network and add blocks to the block chain, and by successfully finding an entire number of nónce, which will be given a corresponding encryptive monetary incentive.


双重支付(Double-Spending)是指用同一笔数字货币进行两次消费,这是加密货币面临的核心安全挑战。比特币之所以长久屹立并深受推崇,正是因为成功解决了这个问题。

Double-paying, which means spending twice in the same digital currency, is a central security challenge for encrypted money. Bitcoin’s persistence and popularity is due to its success.

以现实生活中的星巴克购咖啡为例,顾客支付现金50元后,店员立刻确认并交付商品,这笔交易即告完成,顾客无法再次使用这50元。而在微信或支付宝支付场景下,账户余额减少,两次交易无法同时扣除相同金额,因为银联系统会确保第二笔交易建立在第一笔交易完成基础上。

In a real-life case, Starbucks buys coffee, and once the customer pays 50 dollars in cash, the shopkeeper confirms and delivers the merchandise, and the transaction is completed, and the customer cannot use it again. In the context of the micro-mail or payment of the treasure, the balance of the account is reduced, and the same amount cannot be deducted from both transactions, because the second transaction will be based on the completion of the first transaction.

但在比特币等数字货币领域,初期账户中并无Coin,需要通过挖矿获取。币种的去中心化特性使得Coin无法集中存储,私钥仅能提取和消费属于自己的Coin,一旦私钥丢失,对应的Coin(包括自己的和其他人的)将永久失去。

In digital currency such as Bitcoin, however, there is no Coin in the initial account, which needs to be obtained through mining. The decentralized nature of the currency prevents Coin from centralizing, the private key can only be extracted and consumed by its own Coin, and the corresponding Coin (including its own and others) will be permanently lost once the private key is lost.

比特币如何防范双重支付呢?举个场景:买家使用私钥对其持有的1个比特币进行签名后,分别向卖家A和卖家B的公开地址发出交易请求,两位卖家各自用自己的私钥确认交易,这两笔交易随后进入待确认池等待矿工审核。通常情况下,第一笔交易会被矿工确认并加入下一个区块,而第二笔交易则被视为无效并从网络中剔除。然而,由于网络存在延迟,两个交易可能同时被不同矿工选取进行确认。这时,获得最多确认数的交易将会被写入区块链,而另一笔交易将被废弃。在这种情况下,卖家A可能无法获得Coin,利益受损。

How does Bitcoin protect against double payment? A scenario: When a buyer signs a bitcoin held by a private key, it sends a request for a transaction to the public address of Vendor A and Vendor B, respectively, and the two sellers each confirm the transaction with their own private key, which then enters the confirmed pool for verification by the miners. Normally, the first transaction will be confirmed by the miners and added to the next block, while the second transaction will be considered null and void and rejected from the network. However, due to a delay in the network, two transactions may be identified by different miners at the same time.

解决之道在于,卖家应当等待至少6次确认。这意味着一笔交易被写入区块链后,接下来还有6个包含其他交易的新区块被添加。每个区块及其所包含的交易皆与之前的区块相关联(基于哈希值)。攻击者若想逆转最近6个区块内的所有交易以实现双重支付,在计算层面上几乎是不可能的任务。当卖家收到6次确认后,即可确信该笔交易并非源自试图进行双重支付的买家。

The solution is that the seller should wait for confirmation at least six times. This means that when a transaction is written into the block chain, six new blocks containing other transactions are added. Each block and the transactions it contains are linked to the previous block (based on the Hashi value). If the attackers want to reverse all transactions in the last six blocks to achieve double payment, it is almost impossible at the computing level.


优点:

Advantages:


通过剔除人工验证环节提高准确性。

Improve accuracy by removing manual validation.


去除第三方验证环节,降低交易成本。

Remove third-party certification and reduce transaction costs.


去中心化设计使篡改更为困难。

Decentralizing the design makes tampering more difficult.


交易安全、私密且高效。

Transactions are safe, private and efficient.



缺点:

Disadvantages:


挖矿相关的技术成本高昂。

The technology associated with mining is costly.


处理每秒交易数量较低,比特币网络大约每10分钟生成一个区块,每个区块平均包含约3000笔交易。

The number of transactions processed per second is low, and the Bitcoin network generates about one block every 10 minutes, with an average of about 3,000 transactions per block.


私密性可能导致被用于非法行为。

Privacy may lead to the use of illegal acts.


易受黑客攻击风险。

Be at risk of hacking.





加密数字货币,如比特币。

Encrypted digital currency , e.g. Bitcoin.


医疗记录管理,医疗机构可利用区块链安全存储患者的医疗记录,生成并签署病历时将其写入区块链,确保记录无法篡改并提供信息凭证。个人健康记录可以用私钥加密并存储于区块链上,保证只有授权人士才能访问,确保隐私安全。

Medical records management . Medical institutions can use the block chain to store patients’ medical records safely, to generate and sign medical records and to include them in the block chain, to ensure that records cannot be tampered with and to provide proof of information.


内容分发,运用区块链上的智能合约(Smart Contract),革新传统内容分发模式,确保权利人持续获得收益。

is distributed , using smart contracts on block chains (Smart Contract) to innovate traditional content distribution models to ensure that rights holders continue to reap benefits.


供应链管理,供应商可利用区块链记录原材料采购源头,下游企业借此可验证产品真实性。目前,食品等行业借助区块链追溯食品安全及流向,从

美化布局示例

欧易(OKX)最新版本

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

APP下载   全球官网 大陆官网

币安(Binance)最新版本

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

APP下载   官网地址

火币HTX最新版本

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

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

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

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

分享:

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

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

欧易(OKX)

  全球官网 大陆官网

币安(Binance)

  官网

火币(HTX)

  官网

Gate.io

  官网

Bitget

  官网

deepcoin

  官网
热门文章
  • 从 IPFS社区Meetup谈谈2020年的IPFS的发展历程

    从 IPFS社区Meetup谈谈2020年的IPFS的发展历程
    8月3日, IPFS社区Meetup 如期举办,这一次的社区Meetup由交流与演讲和闪电演示两部分组成,其实该会议主要带领我们回顾了IPFS在2020年的发展历程(包括项目进展、IPFS生态发展等),展示了IPFS及其生态。2020年对于IPFS而言是不平凡的一年,其唯一激励层Filecoin的主网即将上线,这让IPFS和Filecoin在全球范围内得到了前所未有的关注,也推动了IPFS的高速发展。接下来,我们一起走进IPFS在20...
  • 超10万人爆仓,比特币跳水,发生了什么

    超10万人爆仓,比特币跳水,发生了什么
    现货比特币ETF上市第二日,数字货币再迎来抛售。比特币一度跌破42000美元/枚,截止1月13日内跌幅超7%,报42562.1美元/枚。The current Bitcoin ETF is on the second day of the market and the digital currency is sold again. Bitcoin fell by over 7% to $4562.1 on 13 January.现货比特币ETF普遍跌6%左右。其中,DEFI跌...
  • 兴业基金调研远光软件、东芯股份

    兴业基金调研远光软件、东芯股份
    根据6月6日公布的公开市场信息和机构研究,世界安全基金会最近对下列两家上市公司进行了一项研究: 1) 光电软件(工程师基金参与公司专项研究) 其中一个亮点是该公司深入参与建造南方网中心和技术平台,导致南网市场在 " 九天 " 平台产品方面取得重大突破;该公司的Won-宇宙大厅已上线,而且,除了Won-宇宙之外,远洋宇宙的应用现已扩大到Won-宇宙发射、Won-宇宙-教师和政党建设-宇宙;该公司的Far-O-Cloud平台已经实现了完全成熟的国家生产,也可以在全国云中运作。...
  • 0.00003374个比特币等于多少人民币/美金

    0.00003374个比特币等于多少人民币/美金
    0.00003374比特币等于多少人民币?根据比特币对人民币的最新汇率,0.00003374比特币等于2.2826 1222美元/16.5261124728人民币。比特币(BTC)美元(USDT)人民币(CNY)0.00003374克洛克-0/22216.5261124728比特币对人民币的最新汇率为:489807.72 CNY(1比特币=489807.72人民币)(1美元=7.24人民币)(0.00003374USDT=0.0002442776 CNY)。汇率更新于2024...
  • $DOG暴涨400%,加密货币或许正在重新定义和计量“价值”

    $DOG暴涨400%,加密货币或许正在重新定义和计量“价值”
    近/克洛克-0/5,Meme币狗?走吗?去哪?那个?MOON($ DOG)连续上涨超过230%,突破前期高点,达到0.0062美元。在同一时期,比特币生态的许多主流L2协议代币下跌了50%以上。这些就是我们所说的“价值币”。虽然大起大落不能说明什么,但从过去的牛市来看,领头羊MemeCoin表现非凡。在上一轮牛市中,$DOGE的价格上涨了超过150倍,其市值接近900亿美元。还有其他MemeCoin,如$Shib、$People、$ELON、$AKITA等。2 vkwmkpm...
标签列表