SIGHASH_NONE, SIGHASH_SINGLE 和SIGHASH_ALL
来源:互联网 发布:微信公众平台安全域名 编辑:程序博客网 时间:2024/06/03 12:19
OP_CHECKSIG: extracts a non-stack argument from each signature it evaluates, allowing the signer to decide which parts of the transaction to sign. Since the signature protects those parts of the transaction from modification, this lets signers selectively choose to let other people modify their transactions.
The various options for what to sign are called signature hash types. There are three base SIGHASH types currently available:
SIGHASH_ALL: the default, signs all the inputs and outputs, protecting everything except the signature scripts against modification.
SIGHASH_NONE: signs all of the inputs but none of the outputs, allowing anyone to change where the satoshis are going unless other signatures using other signature hash flags protect the outputs.
SIGHASH_SINGLE: the only output signed is the one corresponding to this input (the output with the same output index number as this input), ensuring nobody can change your part of the transaction but allowing other signers to change their part of the transaction. The corresponding output must exist or the value “1” will be signed, breaking the security scheme. This input, as well as other inputs, are included in the signature. The sequence numbers of other inputs are not included in the signature, and can be updated.
- SIGHASH_NONE, SIGHASH_SINGLE 和SIGHASH_ALL
- . 和 ->
- || 和&&
- .和::
- “?”和“!”
- #和##
- && 和 ||
- 、和
- #和##
- .//和..//
- 和
- ?和\?
- ./ 和 ../
- #和##
- #、和##
- #和##
- *和&
- <和>
- web编码问题
- 分布式集群中大数据的中位数
- Spring整合log4j
- 【八】顺序最小优化算法
- poj 2084 Game of Connections (卡特兰数、大数)
- SIGHASH_NONE, SIGHASH_SINGLE 和SIGHASH_ALL
- Mongodb shell脚本
- class文件如何得知jdk编译版本
- 第九周项目一--猴子选大王(数组版)
- Path的常用方法
- 使用Reveal查看真机app的UI布局
- RxJava Android(RxAndroid) 开发全家桶
- Android源码解析之一Activity启动时界面绘制流程
- ThinkPHP框架学习之Image类