dcrd/internal/staging/stdscript
Dave Collins a52b5aec90
stdscript: Add v0 atomic swap redeem support.
This adds support for identifying if a redeem script is a version 0
atomic swap redeem script for an original pay-to-script-hash script as a
convenience method for consumers of the package.

Note that this is different than most other methods in the package in
that it applies to the redeem script as opposed to the public key script
and consequently there is no new script type introduced nor does the
overall script determination detect it.  This is the case because a
redeem script is the final push of a signature script that is itself a
redemption of a pay-to-script-hash script.

Full test coverage is included.

This is part of a series of commits to fully implement the stdscript
package.
2021-06-08 12:20:53 -05:00
..
error_test.go stdscript: Add ecdsa multisig creation script. 2021-06-08 12:20:53 -05:00
error.go stdscript: Add ecdsa multisig creation script. 2021-06-08 12:20:53 -05:00
script_bench_test.go stdscript: Add determine script type benchmark. 2021-06-08 12:20:52 -05:00
script_test.go stdscript: Add v0 treasury gen p2sh support. 2021-06-08 12:20:52 -05:00
script.go stdscript: Add v0 treasury gen p2sh support. 2021-06-08 12:20:52 -05:00
scriptshortform_test.go stdscript: Introduce pkg infra for std scripts. 2021-06-08 12:20:31 -05:00
scriptv0_test.go stdscript: Add v0 atomic swap redeem support. 2021-06-08 12:20:53 -05:00
scriptv0.go stdscript: Add v0 atomic swap redeem support. 2021-06-08 12:20:53 -05:00