diff options
author | fanquake <fanquake@gmail.com> | 2020-03-27 13:07:35 +0800 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2020-03-27 14:49:50 +0800 |
commit | 54646167db5ec86e1f532b6dcf8a1713ea026b6b (patch) | |
tree | e76d49ef9cbb9e88c152bcf8c756984e6166d6ed /test/util/data/txcreatesignv2.hex | |
parent | e3154aacf444a29f9f5642b6c937e875ab9a2c13 (diff) | |
parent | 2b0fcff7f26d59fed4bcafd1602325122a206c67 (diff) |
Merge #18388: Make VerifyWitnessProgram use a Span stack
2b0fcff7f26d59fed4bcafd1602325122a206c67 Make VerifyWitnessProgram use a Span stack (Pieter Wuille)
Pull request description:
Here is a follow-up to #18002, again with the goal of simplifying (potential) BIP341 code.
Instead of passing a begin and end iterator of the initial stack to `ExecuteWitnessScript`, they are turned into a `Span<const valtype>`, representing a span of `valtype`s in memory. This allows `VerifyWitnessProgram` to operate on that span directly, instead of juggling iterators around (which would be exacerbated by #17977 if trying to avoid copying the stack).
ACKs for top commit:
ajtowns:
ACK 2b0fcff7f26d59fed4bcafd1602325122a206c67
elichai:
ReACK on the diff 2b0fcff7f26d59fed4bcafd1602325122a206c67
instagibbs:
re-ACK https://github.com/bitcoin/bitcoin/pull/18388/commits/2b0fcff7f26d59fed4bcafd1602325122a206c67
theStack:
re-ACK https://github.com/bitcoin/bitcoin/commit/2b0fcff7f26d59fed4bcafd1602325122a206c67
Empact:
ACK https://github.com/bitcoin/bitcoin/commit/2b0fcff7f26d59fed4bcafd1602325122a206c67
jnewbery:
utACK 2b0fcff7f26d59fed4bcafd1602325122a206c67
Tree-SHA512: 38eb4ce17f1947674c1c274caa40feb6ea8266bd96134d9cf1bc41e6fbf1114d4dde6c7a9e26e1ca8f3d0155429ef0911cc8ec0c1037d8fe7d6ec7f9e7184e93
Diffstat (limited to 'test/util/data/txcreatesignv2.hex')
0 files changed, 0 insertions, 0 deletions