简述区块链中的加密技术

资讯 2024-07-03 阅读:21 评论:0
美化布局示例

欧易(OKX)最新版本

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

APP下载   全球官网 大陆官网

币安(Binance)最新版本

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

APP下载   官网地址

火币HTX最新版本

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

APP下载   官网地址

众所周知,比特币等加密货币的快速发展,离不开去中心化的区块链,而区块链的发展一样离不开加密技术帮助。那么今天我们就来了解一下区块链中的那些加密技术。

As we all know, the rapid development of encrypted currencies, such as bitcoin, cannot be achieved without decentralizing the chain of blocks, which, like the development of blocks, can be helped by encryption technology. So today, let's look at the encryption techniques in the chain of blocks.

区块链

</p>
<blockquote><p><strong><b>哈希算法</b></strong></p><p><strong> <b> Hashi algorithm</b> </strang></p></blockquote>
<p>哈希算法是一种常见的单向加密算法,它将一串数据加密生成一串固定长度的二进制字符串,这段二进制字符串就是哈希值,但不能由哈希值还原到原来的输入数据。</p><p>The Hashi algorithm is a common one-way encryption algorithm that generates a string of data encryption into a fixed length binary string, which is the Hashi value, but cannot be returned from the Hashi value to the original input data.</p>
<p>密码学中的哈希函数有3个重要的性质,即抗碰撞性、原像不可逆、难题友好性。</p><p>The Hashi function in cryptography has three important properties, namely collision resistance, introvertibility, and problem-friendliness.</p>
<p><strong><b>抗碰撞性:</b></strong>是指两个不同的数据在同一哈希函数作用下,生成相同的哈希值。首先,两个不同的输入产生相同哈希值答案是肯定的,但在于它需要像十亿年后的所有计算机一样来寻找碰撞,以目前计算机的运算能力可以忽略不计。在区块链中,哈希函数的抗碰撞性可以用来做区块和交易的完整性验证。</p><p><strong><b> Collision resistance: </b>/strang> means that two different data produce the same Hashi values under the same Hashi function. First, two different inputes produce the same Hashi value. First, the answer is yes, but it needs to look for collisions like all computers in a billion years.</p>
<p><strong><b>不可逆性:</b></strong>是指根据输出的二进制字符串很难计算出输入的数据。因为输出的哈希值长度远远小于输入的长度,所以在运算过程中会丢弃大量的信息,由于缺失了很多信息,所以根本无法逆向出任何一个输入值。</p><p><strong><b>irreversibility: </b> means that it is difficult to calculate the input data based on the binary string of the output. Because the length of the output Hashi value is much smaller than the length of the input, a large amount of information is discarded during the calculation process, and because much information is missing, it is impossible to reverse any input value.</p>
<p><strong><b>难题友好性:</b></strong>是指没有便捷的方法去产生一个满足特殊要求的哈希值。通俗地讲,就是没有捷径,需要一步一步算出来。假如要求得到的哈希结果以若干个0开头,那么计算找到前3位均为0的哈希值和找到前6位均为0的哈希值,其所需的哈希计算次数是呈一定数量关系。</p><p><strong> <b> </strong> refers to the fact that there is no easy way to produce a Hashi value that meets a particular requirement. Generally speaking, there are no shortcuts that need to be calculated step by step. If the desired Hashi results start with a number of zeros, then the number of Hashis are counted as zeros for the top three and zeros for the top six.</p>
<p><img decoding=

Hahish algorithm

常用的哈希算法有MD5、SHA256和RIPEMD等。在区块链中很多地方用了哈希算法,比如对区块计算哈希值、区块和交易的完整性验证等等。

The usual Hashi algorithms are MD5, SHA256 and RIPEMD.

对称加密技术

symmetrical encryption techniques

对称加密技术是采用同一个密钥,然后使用加密算法对输入的信息进行加密,得到加密后的数据。之后,采用相同的密钥进行逆运算,可以得到原始的输入值。

Symmetric encryption is the same key that is used to encrypt the input information and obtain the encrypted data using the encryption algorithm. After that, the same key is used to reverse the calculation and the original input value is obtained.

它的特点是使用的密钥只有一个,发收信双方都使用这个密钥对数据进行加密和解密,要求解密方事先必须知道加密密钥。

It is characterized by the fact that there is only one key used, and both send and send messages use this key to encrypt and declassify data, requiring the decipherer to know the encryption key in advance.

对称加密技术

symmetrical encryption technology

如果有人在传输过程中截取了密文和密钥,就一样能解密出明文,这就导致了安全性问题。目前区块链领域最常用的对称加密算法是AES、PBKDF2和SCRYPT。

If someone intercepts a message and a key during a transfer, it can be deciphered, which leads to a security problem. The most common symmetric encryption algorithms in the block chain area are AES, PBKDF2 and SCRYPT.

非对称加密技术

asymmetric encryption techniques

非对称加密技术需要两个密钥:公钥和私钥。公钥与私钥是一对,私钥可以推导出公钥,而公钥不可以推导出私钥。如果用公钥对数据进行加密,只有用对应的私钥才能解密;如果用私钥对数据进行加密,那么只有用对应的公钥才能解密。简单的说是“公钥加密,私钥解密;私钥加密,公钥解密”。

Asymmetric encryption requires two keys: public and private keys. Public and private keys are a pair, private keys can be derived from public keys, and public keys cannot be derived from private keys. If public keys are encrypted, only the corresponding private key is used to decrypt the data; if private keys are encrypted, only the corresponding public key is used to decipher the data. Simply put, "Public key encryption, private key decryption; private key encryption, public key decryption".

非对称加密技术

asymmetrical encryption technology

在区块链中,数字签名就是基于上述非对称加密技术,不同点在于数字签名使用私钥生成一个签名,接收方使用公钥进行校验。比如用私钥解密得到明文后,用私钥进行签名进行回复,收到回复后用公钥解密,得到的内容与数据相同即可证明签名正确。

In block chains, digital signatures are based on the asymmetric encryption technique described above. The difference is that digital signatures generate a signature using a private key and the recipient uses a public key for verification. For example, when a private key is declassified, a private key is used to respond to the signature, and when a reply is received, a public key is used to decipher the signature, which is the same as the data.

因为公钥和私钥是成对的,唯一对应的,私钥只有对方拥有,所以对方也不能对签名进行抵赖。

Since the public and private keys are paired, the only correspondence is that the private key is owned only by the counterparty, the counterparty cannot deny the signature.

在区块链技术中常见的签名算法是椭圆曲线加密技术。其算法用对椭圆曲线上的点进行加法或乘法运算来表达。

The signature algorithm that is common in block chain technology is the elliptical curve encryption technique. Its algorithm is expressed by adding or multiplying points on the elliptical curve.

区块链中私钥是一个随机数,通过椭圆曲线签名算法生成公钥。但反向从公钥计算出私钥几乎是不可能的。椭圆曲线签名算法还具有安全性高和存储空间占用小的特点。

The private key in the block chain is a random number that generates the public key through the elliptical signature algorithm. However, it is almost impossible to calculate the private key in reverse from the public key. The elliptical signature algorithm also features high security and low storage space occupancy.

免责声明:素材源于网络,如有侵权,请联系删稿。

Exempt declaration: material originating from the Internet, please contact deleted if violation occurs.

美化布局示例

欧易(OKX)最新版本

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

APP下载   全球官网 大陆官网

币安(Binance)最新版本

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

APP下载   官网地址

火币HTX最新版本

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

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

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

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

分享:

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

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

欧易(OKX)

  全球官网 大陆官网

币安(Binance)

  官网

火币(HTX)

  官网

Gate.io

  官网

Bitget

  官网

deepcoin

  官网
热门文章
  • 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...
  • 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)汇率更新时...
  • 0.00015693个比特币等于多少人民币/美金

    0.00015693个比特币等于多少人民币/美金
    0.000 15693比特币等于多少人民币?根据比特币对人民币的最新汇率,0.000 15693比特币等于10.6 1678529美元/76.86554996人民币。比特币(BTC)【比特币价格翻倍】美元(USDT)人民币(CNY)0.000/克洛克-0/5693【数字货币矿机】10.6 167852976.8655254996比特币对人民币的最新汇率为:489,807.72 CNY(1比特币= 489,807.72人民币)(1美元=7.24人民币)(0.00015693 U...
  • 币圈院士:5.20比特币(BTC)以太坊(ETH)行情分析

    币圈院士:5.20比特币(BTC)以太坊(ETH)行情分析
    利空出尽?华尔街多头坚信美股将摆脱泥潭 经济衰退风险被夸大A lot of people on Wall Street believe that beauty will escape the quagmire; the risk of recession is exaggerated. 从目前美国经济的情况加上美股先有的走势来判断,确信通胀已经或即将见顶,这为价格压力回落铺平了道路,这最终将使美联储得以放缓...
  • 2000年美国GDP占世界的304%,中国GDP仅占35%,现在呢?

    2000年美国GDP占世界的304%,中国GDP仅占35%,现在呢?
    GDP作为全球公认的实力基准,就像是一个大国实力的代言人,它是布雷顿森林体系下全球团结的声音。它不仅仅是数字的累积,更是大国综合实力的人格化,默默诉说着每个国家的辉煌与荣耀。虽然GDP不是衡量一个国家综合实力的唯一标准,但无疑是最关键的指标之一。作为一面镜子,它反映了国家的经济实力和发展水平,是国家综合实力的重要体现,不容忽视。2000年,中国GDP迈过/克洛克-0/万亿美元的重要门槛,达到/克洛克-0/。2/克洛克-0/万亿美元(折合人民币7。7万亿元)。然而,在全球经济的...
标签列表