爱你一万年123

资讯 2024-07-15 阅读:53 评论:0
在?特币系统中, 我们?公钥加密创建?个密钥对, ?于控制?特币的获取。 密钥对包括?个私钥, 和由其衍?出的唯?的公钥。 公钥?于接收?特币, ?私钥?于?特币?付时的交易签名。In the? T.S. System, we? Publi...
美化布局示例

欧易(OKX)最新版本

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

APP下载   全球官网 大陆官网

币安(Binance)最新版本

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

APP下载   官网地址

火币HTX最新版本

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

APP下载   官网地址

在?特币系统中, 我们?公钥加密创建?个密钥对, ?于控制?特币的获取。 密钥对包括?个私钥, 和由其衍?出的唯?的公钥。 公钥?于接收?特币, ?私钥?于?特币?付时的交易签名。

In the? T.S. System, we? Public key encryption created? A key pair, in the control? The acquisition of the T.S. Key pairs include a private key, and a public key derived from it?

公钥和私钥之间的数学关系, 使得私钥可?于?成特定消息的签名。 此签名可以在不泄露私钥的同时对公钥进?验证。

The mathematical relationship between a public key and a private key makes a private key possible?

?付?特币时, ?特币的当前所有者需要在交易中提交其公钥和签名( 每次交易的签名都不同, 但均从同?个私钥?成) 。

♪ When paying ♪ ♪ the current owner of ♪ ♪ the currency needs to submit its public key and signature in the transaction (with different signatures for each transaction, but from the same? private key? ♪ ♪

?特币?络中的所有?都可以通过所提交的公钥和签名进?验证, 并确认该交易是否有效, 即确认?付者在该时刻对所交易的?特币拥有所有权。

♪ All in the T.E.C.? can go through the public key and signature submitted? ♪ ♪ and confirm the validity of the transaction, i.e. confirm? The payer has ownership of the transaction at that time? ♪ T.I.

(?多数?特币钱包?具为了?便会将私钥和公钥以密钥对的形式存储在?起。 然?, 公钥可以由私钥计算得到, 所以只存储私钥也是可以的。)

(? Most? Specially wallets? In order to store private keys and public keys in the form of key pairs?) Yes, public keys can be calculated by private keys, so only private keys can be stored.

?个?特币钱包中包含?系列的密钥对, 每个密钥对包括?个私钥和?个公钥。 私钥( k) 是?个数字, 通常是随机选出的。

? a key pair of? series in a wallet, each key pair includes? a private key and? a public key. A private key (k) is? a number, usually randomly selected.

有了私钥, 我们就可以使?椭圆曲线乘法这个单向加密函数产个公钥( K) 。 有了公钥( K) , 我们就可以使个单向加密哈希函数?成?特币地址( A) 。 在本节中, 我们将从?成私钥开始, 讲述如何使?椭圆曲线运算将私钥?成公钥, 并
最终由公钥?成?特币地址。 私钥、 公钥和?特币地址之间的关系如下图所?。

With a private key, we can make? The elliptical curve multiplied by a one-way encryption function produces a public key (K). With a public key, we can make a one-way encryption Hashi function? or a special currency address (A). In this section, we will start with a private key, telling how to make an elliptical curve work for a private key? And
ends up with a public key?



私钥就是?个随机选出的数字?已。 ?个?特币地址中的所有资?的控制取决于相应私钥的所有权和控制权。 在?特币交易中, 私钥?于?成?付?特币所必需的签名以证明资?的所有权。 私钥必须始终保持机密, 因为?旦被泄露给第三?, 相当于该私钥保护之下的?特币也拱?相让了。 私钥还必须进?备份, 以防意外丢失, 因为私钥?旦丢失就难以复原, 其所保护的?特币也将永远丢失。

The private key must always remain confidential, because it is leaked to the third? The equivalent to the private key's protection?

?特币私钥只是?个数字。 你可以?硬币、 铅笔和纸来随机?成你的私钥: 掷硬币256次, ?纸和笔记录正反?并转换为0和1, 随机得到的256位?进制数字可作为?特币钱包的私钥。 该私钥可进?步?成公钥。

♪ The special key is just ♪ a number ♪ you can ♪ coins, pencils, and paper randomly? ♪ It's your private key: toss the coin 256 times, ♪ paper and pen records backwards? ♪ and converted to 0 and 1, the randomly obtained 256 bits? Introverts can be the private key? ♪ The private key can go in? ♪ Step into the public key.

?成密钥的第?步也是最重要的?步, 是要找到?够安全的熵源, 即随机性来源。 ?成?个?特币私钥在本质上与“在1到2^256之间选?个数字”?异。 只要选取的结果是不可预测或不可重复的, 那么选取数字的具体?法并不重要。 ?特币软件使?操作系统底层的随机数?成器来产?256位的熵( 随机性) 。 通常情况下, 操作系统随机数?成器由的随机源进?初始化, 也可能需要通过?秒钟内不停晃动?标等?式进?初始化。 对于真正的偏执狂, 可以使?掷骰?的?法, 并?铅笔和纸记录。

♪ The first step of the key ♪ is also the most important ♪ the step is to find a secure source of entropy, i.e. a random source. ♪ Yes? ♪ No? ♪ The private key is essentially "choice between one and two and 256?" Different. As long as the result of the selection is unpredictable or non-repeal, it doesn't matter what the exact method is. ♪ The software makes the random number of the bottom of the operating system?

更准确地说, 私钥可以是1和n-1之间的任何数字, 其中n是?个常数(n=1.158*1077, 略?于2^256) , 并由?特币所使?的椭圆曲线的阶所定义。要?成这样的?个私钥, 我们随机选择?个256位的数字, 并检查它是否?于n-1。 从编程的?度来看, ?般是通过在?个密码学安全的随机源中取出串随机字节, 对其使?SHA256哈希算法进?运算, 这样就可以?便地产个256位的数字。 如果运算结果?于n-1, 我们就有了?个合适的私钥。 否则, 我们就?另?个随机数再重复?次。

More precisely, a private key can be any number between 1 and n-1, of which n is? A constant (n=1.158*1077, slightly? 2⁄256) and defined by the order of an elliptical curve made by?? currency?

以下是?个随机?成的私钥( k) , 以?六进制格式表?( 256位的?进制数, 以64位?六进制数显?, 每个?六进制数占4位) :

The following is a random? Private key (k), in? hexadecimal format? (256 bits? in progress, 64 bits? in hexadecimal?, 4 places per hexadecimal):



?特币私钥空间的是2^256, 这是?个?常?的数字。 进制表?的话, ?约是1077, ?可?宇宙被估计只含有1080个原?。

♪ It's 2⁄256 ♪ it's a number ♪ it's a number ♪ it's a number ♪ ♪ it's a chart ♪ ♪ it's about 1077, can it? ♪ The universe is estimated to contain only 1,080 originals?

通过椭圆曲线乘法可以从私钥计算得到公钥, 这是不可逆转的过程: K=k * G 。 其中 k 是私钥, G 是被称为?成点的常数点, ? K 是所得公钥。 其反向运算, 被称为“寻找离散对数”——已知公钥 K 来求出私钥 k ——是?常困难的, 就像去试验所
有可能的 k 值, 即暴?搜索。

An elliptical curve multiplied to get a public key from a private key, which is an irreversible process: K=k *G. Of which k is a private key, G is known as a constant point? K is a public key. Its reverse calculation, known as the "Find Separated logarithm" - the known public key K - is hard to find a private key k. It is like going to test the possible k-value of
, i. e., violent search?

椭圆曲线加密法是?种基于离散对数问题的?对称( 或公钥) 加密法, 可以?对椭圆曲线上的点进?加法或乘法运算来表达。

An elliptical encryption method? A symmetrical (or public key) encryption method based on a discrete logarithm problem can be expressed as a point in the ellipse curve? Add or multiply.



上图是?个椭圆曲线的?例, 类似于?特币所?的曲线。
?特币使?了 secp256k1 标准所定义的?条特殊的椭圆曲线和?系列数学常数。 该标准由美国国家标准与技术研究院
( NIST) 设?。 secp256k1 曲线由下述函数定义, 该函数可产条椭圆曲线:

The figure above is an elliptical curve? An example of an elliptical curve, similar to that of a metropolis?.
? a metropolis? defined by the secp256k1 criterion? A special elliptical curve and a series of mathematical constants. This standard is set by the National Institute of Standards and Technology of the United States
(NIST)? The secp256k1 curve is defined by the following function, which produces an elliptical curve:



或 y^2mod p=(x^3 + 7) mod p

or y~2mod p=(x3+7)mod p

上述mod p( 素数p取模) 表明该曲线是在素数阶p的有限域内, 也写作Fp, 其中p=2^256 – 2^32 – 2^9 – 2^8 – 2^7 – 2^6 – 2^4 – 1,这是?个?常?的素数。
因为这条曲线被定义在?个素数阶的有限域内, ?不是定义在实数范围, 它的函数图像看起来像分散在两个维度上的散点图, 因此很难画图表?。 不过, 其中的数学原理与实数范围的椭圆曲线相似。 作为?个例?, 下图显?了在?个?了很多的素数阶17的有限域内的椭圆曲线, 其形式为?格上的?系列散点。 ? secp256k1 的?特币椭圆曲线可以被想象成?个极?的?格上?系列更为复杂的散点。

This is a constant?
because the curve is defined within a limited range of a numerical range? Not defined in the physical range, its function image looks like a scattering point at two dimensions, which makes it difficult to draw a chart.



图为: 椭圆曲线密码学F(p)上的椭圆曲线, 其中p=17

Figure: Ellipse curve on Ellipse F(p), where p=17

下?举?个例?, 这是 secp256k1 曲线上的点P, 其坐标为(x, y)。 可以使?Python对其检验:

Here's the point P on the secp256k1 curve, with the coordinates (x, y). May Python test it:



在椭圆曲线的数学原理中, 有?个点被称为“?穷远点”, 这?致对应于0在加法中的作?。 计算机中, 它有时表?为X=Y=0( 虽然这不满?椭圆曲线?程, 但可作为特殊情况进?检验) 。 还有?个 + 运算符, 被称为“加法”, 就像?学数学中的实数相加。 给定椭圆曲线上的两个点P1和P2, 则椭圆曲线上必定有第三点 P3=P1 + P2。
?何图形中, 该第三点P3可以在P1和P2之间画?条线来确定。 这条直线恰好与椭圆曲线上的?点相交。 此点记为 P3’=(x, y)。 然后, 在x轴做映射获得 P3=(x, -y)。

In the mathematical theory of elliptical curves, is there a dot called “Does poverty far away”, this? Corresponds to what is done in added-up? In computers, it sometimes shows? X=Y=0 (although this is unsatisfactory? elliptical curves? process, but can it be tested as a special case?). And? + operator, called “plus”, as in mathematics. For two dots P1 and P2 on a fixed elliptical curve, there must be a third dot P3 = P1 + P2 on an elliptical curve.
? Which graphic, the third dot P3 can be drawn between P1 and P2? This line coincides exactly with the dot on an elliptical curve?

下?是?个可以解释“?穷远点”之存在需要的特殊情况。 若 P1和 P2是同?点, P1和P2间的连线则为点P1 的切线。 曲线上有且只有?个新的点与该切线相交。 该切线的斜率可?微分求得。 即使限制曲线点为两个整数坐标也可求得斜率!

Below? A special case that explains the need for the existence of “Are the poor far away.” If P1 and P2 are the same?, the link between P1 and P2 is the tangent of point P1. There is a curve and only a new point?

在某些情况下( 即, 如果P1和P2具有相同的x值, 但不同的y值) , 则切线会完全垂直, 在这种情况下, P3=“?穷远点”。

In some cases (i.e., if P1 and P2 have the same x, but different y), the line is completely vertical, and in this case, P3 = "Are you poor?"

若P1就是“?穷远点”, 那么其和 P1 + P2=P2。 类似地, 当P2是?穷远点, 则P1+ P2=P1。 这就是把?穷远点类似于0的作?。

And if P1 is "Are you poor?" So it's like "P1 + P2 = P2." Similarly, when P2 is? If P1 + P2 = P1 = P1. That's what it's like to be poor?

事实证明, 在这? + 运算符遵守结合律, 这意味着(A+B)C=A(B+C)。 这就是说我们可以直接不加括号书写 A + B + C, ?不?于混淆。

It turns out that in this? + operator follows the combination, which means (A+B)C=A(B+C). This means that we can write A+B+C without brackets. No? Confusion.

?此, 我们已经定义了椭圆加法, 为扩展加法下?我们对乘法进?标准定义。 给定椭圆曲线上的点P, 如果k是整数, 则 kP=P + P + P + …+ P( k次) 。 注意, k被有时被混淆?称为“指数”。

♪ So, we've defined ellipse additions, for extension? We've defined multiplying? Standard. Give a point P on an elliptical curve, and if k is integer, kP=P+P+P+...+P (k times). Note that k is sometimes confused? "Indices."

以?个随机?成的私钥k为起点, 我们将其与曲线上已定义的 ?成点G相乘以获得曲线上的另?点, 也就是相应的公钥K。 ?成点是secp256k1标准的?部分, ?特币密钥的?成点都是相同的:

Using a random K key as a starting point, we multiply it with a defined G point on the curve by a different point on the curve? That's the corresponding K key. ♪ The point is the secp256k1 standard part, ♪ The T.K. key is the same:



其中k是私钥, G是?成点, 在该曲线上所得的点K是公钥。 因为所有?特币的?成点是相同的, ?个私钥k乘以G将得到相同的公钥K。 k和K之间的关系是固定的, 但只能单向运算, 即从k得到K。 这就是可以把?特币地址( K的衍?) 与任何?共享?不会泄露私钥( k) 的原因。

The k is a private key, the G is? The point K is a public key. Because all of them? The point is the same. A private k multiplied by G will have the same public key K. The relationship between k and K is fixed, but only one way to calculate it, that is, to get K from k. That is why you can share the address with any of them?

因为其中的数学运算是单向的, 所以私钥可以转换为公钥, 但公钥不能转换回私钥。
为实现椭圆曲线乘法, 我们以之前产?的私钥k和与?成点G相乘得到公钥K:

Because the mathematical transport is one-way, the private key can be converted to the public key, but the public key cannot be converted back to the private key.
For the elliptical curve to multiply, we use the private key k of the previous production, and the G with? to the public key K:



公钥K 被定义为?个点 K=(x, y):

K of the public key is defined as? K = (x, y):



为了展?整数点的乘法, 我们将使?较为简单的实数范围的椭圆曲线。 请记住, 其中的数学原理是相同的。 我们的?标是找到?成点G的倍数kG。 也就是将G相加k次。 在椭圆曲线中, 点的相加等同于从该点画切线找到与曲线相交的另?点, 然后映射到x轴。

So, in the elliptical curve, the add-up of the dot is equal to the other point where the line of the dot corresponds to the curve? And then map it to the x-axis.



上图显?了在曲线上得到 G、 2G、 4G 的?何操作。

The above figure shows what G, 2G, and 4G have got on the curve? What do you do?

?多数?特币程序使?OpenSSL加密库进?椭圆曲线计算。 例如, 调?EC_POINT_mul() 函数, 可计算得到公钥。

? Most? special currency program makes? OpenSSL encrypt library? elliptical curve calculation. For example, adjust? EC_POINT_mul() function, which can be calculated with a public key.

美化布局示例

欧易(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)汇率更新时...
标签列表