为什么不在原始事务中使用地址而不是公钥字节

0
In raw transaction,bitcoin using bytes of the public key,like:
042daa93315eebbbe2cb9b5c3505df4c6fb6ca8b756760985675550d4820c09db988fe9997d049d687292f815ccd6e7fb5c1b1a9113799818d17c73d0f80aef9
这是一个很多的白色。
Technically,can we use bitcoin addresses)(
raw-transaction
Share
Improve this question
Follow
asked 1 hour ago
ntk138
2522 bronze badges
New contributor
Add a comment
1 Answer
1
In raw transaction,bitcoin using bytes of the public key,like:042daa93315 eebbe2cb9b5c3505df4c6fb6ca8b7567609856755550d4820c09db988fe9997d049d687292f815ccd6e7fb5c1b1a9113799818d17c73d0f80aef9
Technically the raw transaction contains the Script,which usually is written with a Bitcain script.它可以包含在旧的脚本PubKey,就像P2PK,但社区是做一个大的影响移动bitcoin用户使用脚本,包含公共钥匙的哈希。The script like Pay-to-Public-Key-Hash)(P2PKH)or pay-to-witness-public-key-hash)
from the script,it is possible to callate the address but not vice versa.
在结束,所有的地址有一个conversion喜欢:
P2PK,P2PKH:start with 1.
P2SH:start with 3.
P2WSH,P2WPKH:start with bc or with 3.
在这一点上,answer should contain a resume of all the types of script and how the script is built,and also an introduction to the not standard script that are used extensively from the lightning network protocol.
但我认为一个非常好的总结是在这两章的Bitcain书的“交易”和“先进的交易和描述”,我不能做更好的
更新
我不是一个失败的理论,也许你也可以使用这个代码的例子来理解如何将脚本转换到一个Bitcon地址。Decompiler Bitcotin Script。
it is only an example of the conversion that could be done.

sskoowww.qkl91.com_.com59_thumb

发表评论

邮箱地址不会被公开。 必填项已用*标注