比特币压缩格式私钥你理解对了吗?

资讯 2024-07-01 阅读:61 评论:0
压缩格式私钥:大家看到压缩格式私钥这几个字是不是认为这个私钥是被压缩了的?其实我一开始是这么认为的,但随着对概念的深入学习与理解,我发现我理解错了,因为私钥本身并不能被压缩,压缩格式私钥反而比非压缩格式私钥多了1个字节,这多出来的1个字节是...

压缩格式私钥:大家看到压缩格式私钥这几个字是不是认为这个私钥是被压缩了的?其实我一开始是这么认为的,但随着对概念的深入学习与理解,我发现我理解错了,因为私钥本身并不能被压缩,压缩格式私钥反而比非压缩格式私钥多了1个字节,这多出来的1个字节是私钥被加了后缀"01",用以表明该私钥是来自于一个较新版本的钱包,只能用于生成压缩格式的公钥。就是说该私钥只能用于生成压缩格式的公钥,其本身并不是压缩格式。反之,非压缩格式私钥是只能用于生成非压缩格式的公钥。具体转换关系如图所示:

Private Keys for Compressed Formats: You can see whether the private key is condensed? I thought so at first, but as I learned and understood the concept in depth, I found that I was wrong because Private Keys itself and could not be compressed and the private key for compressed formats was one byte more than the private key for non-compressed formats , which was added to the private key '01'/b' to show that the private key came from a newer version of the wallet and was used only to generate the public key for compressed formats. That is, the private key can only be used to generate the public key for compressed formats, not the compressed format itself. Conversely, the private key for non-compressed formats is used only to generate the public key for non-compressed formats.

从上面的定义和图示,大家可以看出压缩格式私钥这个词用得不太恰当,容易让人产生误解,让人误以为私钥是可以被压缩的,其实这种理解是不对的,如上述概念给出的,压缩格式私钥其实比非压缩格式私钥还多了1个字节,在非压缩格式私钥的基础上添加后缀"01"用以表示为压缩格式私钥,压缩格式私钥提出的作用是为了节省钱包存储空间而新研制出的一种私钥编码格式。

From the definitions and illustrations above, it can be seen that the word private keys in compressed formats are used inappropriately and misleadingly to suggest that private keys can be compressed. This understanding is not correct. As the concepts mentioned above give, private keys in compressed formats are actually one byte more than private keys in non-compressed formats, and the postfix "01" is added to the private keys in non-compressed formats to mean private keys in compressed formats, and private keys in compressed formats are presented as a newly developed private key encoding format to save wallet storage space.

如果一个比特币钱包实现了压缩格式公钥,那么它将会在所有交易中使用该压格式缩公钥。钱包中的私钥将会被用来生成压缩格式公钥,压缩格式公钥然后被用来生成交易中的比特币地址。当从一个实现了压缩格式公钥的比特币钱包导出私钥时,钱包导入格式(WIF)将会被修改为WIF压缩格式,该格式将会在私钥的后面附加一个字节大小的后缀01。最终的Base58Check编码格式的私钥被称作WIF(“压缩”)私钥,以字母“K”或“L”开头。而以“5”开头的是从较老的钱包中以WIF(非压缩)格式导出的私钥。

If a bitcoin wallet achieves the compressed format public key, it will use the pressurized format public key in all transactions. The private key in the wallet will be used to generate the compressed format public key, compressed the format public key, and then used to generate the bitcoin address in the transaction. When the private key is exported from a bitcoin wallet that achieves the compressed format public key, the wallet import format (WIF) will be modified to the WIF compressed format, which will add a byte-size after the private key. The final private key in the Base58Check code format is called the WIF (“compressure”) private key, which begins with the letter “K” or “L” at the beginning of the word “5” and starts with the private key that is derived from the older WIF (non-compressive) format.

表4-4展示了同样的私钥使用不同的WIF和WIF压缩格式编码。

Table 4-4 shows the same private key coded using different WIF and WIF compressed formats.

Hex(十六进制):1E99423A4ED27608A15A2616A2B0E9E52CED330AC530EDCC32C8FFC6A526AEDD

Hex: 1E99423A4ED27608A15A216A2B0E9E52CED330AC530EDC32C8FFC6A526AED

WIF(非压缩私钥):5J3mBbAH58CpQ3Y5RNJpUKPE62SQ5tfcvU2JpbnkeyhfsYB1Jcn

WIF (non-compressed private key): 5J3mBAH58CpQ3Y5RNjpKPE62SQ5tfcvU2JpbnkeyfsYB1Jcn

Hex-compressed(压缩十六进制):1E99423A4ED27608A15A2616A2B0E9E52CED330AC530EDCC32C8FFC6A526AEDD01

Hex-compressed: 1E99423A4ED27608A15A216A2B0E9E52CED3AC530EDC32C8FFC6A526AED01

WIF-compressed(压缩私钥):KxFC1jmwwCoACiCAWZ3eXa96mBM6tb3TYzGmf6YwgdGWZgawvrtJ

WIF-compressed (compressed private key): KxFC1jmwCoAquicaZ3eXa96mBM6tb3TYzGmf6YwgdGZgawrtJ

文字格式和图片示例

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

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

分享:

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

发表评论
热门文章
  • 以太坊区块链浏览器的搭建

    以太坊区块链浏览器的搭建
    环境;Ubuntu 首先需要下载git 参考链接:?http://www.360bchain.com/article/156.html??Environment; Ubuntu first needs to download git reference link: ˂a rel="noformlow" href="http://www.360bchai.com/article/156.html"? http://www.360bchai.com/article/156.htm...
  • 百度元宇宙希壤app官方下载

    百度元宇宙希壤app官方下载
    希壤元宇宙是一款非常好玩的休闲手游,这款游戏采用了元宇宙的游戏概念,超级自由的游戏玩法,在这里没有什么标准限定,你可以自由的在这里进行着一切你想做的事情,游戏比较的休闲和放松,没有什么操作难度,感兴趣的小伙伴们可以来007游戏网下载这款非常有趣的希壤元宇宙吧!˂a href=http://m.yx007.com/key/xxsy" target="_blank" , a game that uses the concept of meta-cosm, super-free p...
  • 【CoinCentral 合作內容】加密貨幣 Decred 正式推出 2018 發展路段線圖

    【CoinCentral 合作內容】加密貨幣 Decred 正式推出 2018 發展路段線圖
    早些時候,加密貨幣Decred發表了一篇博客文章,概述了他們2018年的正式發展路線圖。Earlier, encrypt currency Decred published a blog article outlining their official road map for development in 2018.在這個路線圖中,團隊在為他們制定營銷宣傳之前,明確地表明他們於建立和發布可交付物品的成果,同時將他們的營銷集中在項目的核心組成部分。Decred團隊正在研究一些...
  • 跨接在两个网络间的语音记录仪设计

    跨接在两个网络间的语音记录仪设计
      摘  要: 设计了语音记录仪。该语音记录仪桥接在通信设备之间,同时提供3种桥接接口:以太网接口,支持在IP通信方式下的各通话组的直通及录音功能;二线接口,支持模拟二线方式下的直通及录音功能;音频接口,支持模拟音频方式下的直通及录音功能。同时话音记录仪提供FTP服务器,可以通过局域网对语音记录仪保存的语音文件进行下载和管理。此外,该设备支持语音回放功能。 extracts & nbsp; to : The voice record...
  • 元宇宙概念股有哪些 元宇宙概念股一览表

    元宇宙概念股有哪些 元宇宙概念股一览表
    元宇宙概念股排行精选 元宇宙概念股一览表(2022/11/08),下文就随小蔡来简单的了解一下吧。The contours of the meta-cosmology unit are in the list of the meta-cosmological concept units (2022/11/08), so let's get to the bottom of this with Little Choi. 元宇宙概念股龙头有:The contou...
标签列表