Commit Graph

327 Commits

Author SHA1 Message Date
Dave Collins
49b3f9f61a
txscript: Optimize ExtractPkScriptAddrs scripthash.
This begins the process of converting the ExtractPkScriptAddrs function
to use the optimized extraction functions recently introduced as part of
the typeOfScript conversion.

In order to ease the review process, the detection of each script type
will be converted in a separate commit such that the script is only
parsed as a fallback for the cases that are not already converted to
more efficient variants.

In particular, this converts the detection for pay-to-script-hash
scripts.
2019-03-26 14:51:48 -05:00
Dave Collins
5e90e59cf5
txscript: Add ExtractPkScriptAddrs benchmarks. 2019-03-26 14:51:47 -05:00
Dave Collins
4774fda89a
txscript: Optimize ExtractAtomicSwapDataPushes.
This converts the ExtractAtomicSwapDataPushes function to make use of
the new tokenizer instead of the far less efficient parseScript thereby
significantly optimizing the function.

The new implementation is designed such that it should be fairly easy to
move the function into the atomic swap tools where it more naturally
belongs now that the tokenizer makes it possible to analyze scripts
outside of the txscript module.  Consequently, this also deprecates the
function.

The following is a before and after comparison of attempting to extract
from both a typical atomic swap script and a very large non-atomic swap
script:

benchmark                                   old ns/op    new ns/op    delta
------------------------------------------------------------------------------
BenchmarkExtractAtomicSwapDataPushes        1330         410          -69.17%
BenchmarkExtractAtomicSwapDataPushesLarge   136819       69.3         -99.95%

benchmark                                   old allocs   new allocs   delta
------------------------------------------------------------------------------
BenchmarkExtractAtomicSwapDataPushes        2            1            -50.00%
BenchmarkExtractAtomicSwapDataPushesLarge   1            0            -100.00%

benchmark                                   old bytes    new bytes    delta
------------------------------------------------------------------------------
BenchmarkExtractAtomicSwapDataPushes        3168         96           -96.97%
BenchmarkExtractAtomicSwapDataPushesLarge   466944       0            -100.00%
2019-03-26 14:51:47 -05:00
Dave Collins
605a9a419e
txscript: Add ExtractAtomicSwapDataPushes benches. 2019-03-26 14:51:46 -05:00
Dave Collins
ceb1f7244a
txscript: Add tests for atomic swap extraction.
This adds a fairly comprehensive set of tests to ensure the standard
atomic swap script detection and extraction function works as intended.
2019-03-26 14:51:45 -05:00
Dave Collins
67d73853b2
txscript: Make canonicalPush accept raw opcode.
This renames the canonicalPush function to isCanonicalPush and converts
it to accept an opcode as a byte and the associate data as a byte slice
instead of the internal parse opcode data struct in order to make it
more flexible for raw script analysis.

It also updates all callers and tests accordingly.
2019-03-26 14:51:45 -05:00
Dave Collins
bb365f221f
txscript: Optimize IsUnspendable.
This converts the IsUnspendable function to make use of a combination of
raw script analysis and the new tokenizer instead of the far less
efficient parseScript thereby significantly optimizing the function.

It is important to note that this new implementation intentionally has a
semantic difference from the existing implementation in that it will now
report scripts that are larger than the max allowed script size are
unspendable as well.

Finally, the comment is modified to explicitly call out the script
version semantics.

The following is a before and after comparison of analyzing a large
script:

benchmark                old ns/op    new ns/op    delta
-----------------------------------------------------------
BenchmarkIsUnspendable   149899       860          -99.43%

benchmark                old allocs   new allocs   delta
-----------------------------------------------------------
BenchmarkIsUnspendable   1            0            -100.00%

benchmark                old bytes    new bytes    delta
-----------------------------------------------------------
BenchmarkIsUnspendable   466945       0            -100.00%
2019-03-26 14:51:44 -05:00
Dave Collins
a1da017271
txscript: Add benchmark for IsUnspendable. 2019-03-26 14:51:43 -05:00
Dave Collins
9e7de33d6b
txscript: Optimize PushedData.
This converts the PUshedData function to make use of the new tokenizer
instead of the far less efficient parseScript thereby significantly
optimizing the function.

Also, the comment is modified to explicitly call out the script version
semantics.

The following is a before and after comparison of extracting the data
from a very large script:

benchmark             old ns/op    new ns/op    delta
-------------------------------------------------------
BenchmarkPushedData   132400       1619         -98.78%

benchmark             old allocs   new allocs   delta
-------------------------------------------------------
BenchmarkPushedData   5            4            -20.00%

benchmark             old bytes    new bytes    delta
-------------------------------------------------------
BenchmarkPushedData   467320       368          -99.92%
2019-03-26 14:51:42 -05:00
Dave Collins
9b74ada724
txscript: Add benchmark for PushedData. 2019-03-26 14:51:42 -05:00
Dave Collins
d82dfb76dd
txscript: Convert GetScriptHashFromP2SHScript.
This converts GetScriptHashFromP2SHScript to make use of the new script
tokenizer in order to remove the reliance on parsed opcodes as a step
towards utlimately removing them altogether.

It also deprecates the function since the current semantics are not
really ideal in that they simply return the data push just after the
first HASH160 opcode which is only valid in the case the script is
already known to be of the correct form and the task can be done more
efficiently via raw script analysis such as how it is done in the
recently added extractScriptHash function.

Finally, it modifies the comment to explicitly call out the script
version semantics as well as the aforemention precondition.

It is worth noting that this has the side effect of significantly
optimizing the function as well, however, since it is deprecated, no
benchmarks are provided.
2019-03-26 14:51:41 -05:00
Dave Collins
1466a2a72d
txscript: Optimize multi sig redeem script func.
This converts the MultisigRedeemScriptFromScriptSig function to make use
of the new finalOpcodeData function instead of the far less efficient
parseScript thereby significantly optimizing the function.

It also deprecates the error return since it really does not make sense
given the preconditions of the function.

Finally, the comment is modified to explicitly call out the script
version semantics.

The following is a before and after comparison of analyzing a very large
script:

benchmark                       old ns/op    new ns/op    delta
------------------------------------------------------------------
BenchmarkMultisigRedeemScript   153623       1830         -98.81%

benchmark                       old allocs   new allocs   delta
------------------------------------------------------------------
BenchmarkMultisigRedeemScript   1              0          -100.00%

benchmark                       old bytes    new bytes    delta
------------------------------------------------------------------
BenchmarkMultisigRedeemScript   466944       0            -100.00%
2019-03-26 14:51:40 -05:00
Dave Collins
b0f5561776
txscript: Add multisig redeem script extract bench. 2019-03-26 14:51:40 -05:00
Dave Collins
c596826688
txscript: Optimize CalcMultiSigStats.
This converts the CalcMultiSigStats function to make use of the new
extractMultisigScriptDetails function instead of the far less efficient
parseScript thereby significantly optimizing the function.

The tests are also updated accordingly.

The following is a before and after comparison of analyzing a standard
multisig script:

benchmark                    old ns/op    new ns/op    delta
---------------------------------------------------------------
BenchmarkCalcMultiSigStats   972          79.5         -91.82%

benchmark                    old allocs   new allocs   delta
---------------------------------------------------------------
BenchmarkCalcMultiSigStats   1            0            -100.00%

benchmark                    old bytes    new bytes    delta
---------------------------------------------------------------
BenchmarkCalcMultiSigStats   2304         0            -100.00%
2019-03-26 14:51:39 -05:00
Dave Collins
04e70a1150
txscript: Add CalcMultiSigStats benchmark. 2019-03-26 14:51:38 -05:00
Dave Collins
5a4d9c9b5a
txscript: Remove unused getSigOpCount function. 2019-03-26 14:51:37 -05:00
Dave Collins
7d8ce2d27b
txscript: Remove unused isPushOnly function. 2019-03-26 14:51:37 -05:00
Dave Collins
8f442764f4
txscript: Convert CalcScriptInfo.
This converts CalcScriptInfo and dependent expectedInputs to make use of
the new script tokenizer as well as several of the other recently added
raw script analysis functions in order to remove the reliance on parsed
opcodes as a step towards utlimately removing them altogether.

It is worth noting that this has the side effect of significantly
optimizing the function as well, however, since it is deprecated, no
benchmarks are provided.
2019-03-26 14:51:36 -05:00
Dave Collins
6a0a77fd81
txscript: Optimize ExtractCoinbaseNullData.
This converts the ExtractCoinbaseNullData function to make use of the
new tokenizer instead of the far less efficient parseScript thereby
significantly optimizing the function.

The following is a before and after comparison of analyzing a typical
coinbase script:

benchmark                        old ns/op    new ns/op    delta
-------------------------------------------------------------------
BenchmarkExactCoinbaseNullData   227          31.0         -86.34%

benchmark                        old allocs   new allocs   delta
-------------------------------------------------------------------
BenchmarkExactCoinbaseNullData   1            0            -100.00%

benchmark                        old bytes    new bytes    delta
-------------------------------------------------------------------
BenchmarkExactCoinbaseNullData   448          0            -100.00%
2019-03-26 14:51:35 -05:00
Dave Collins
ccd0a92bc1
txscript: Add benchmark for ExtractCoinbaseNullData. 2019-03-26 14:51:35 -05:00
Dave Collins
0e021a9564
txscript: Optimize ContainsStakeOpCodes.
This converts the ContainsStakeOpCodes function to make use of the new
tokenizer instead of the far less efficient parseScript thereby
significantly optimizing the function.

The following is a before and after comparison of analyzing a large
script:

benchmark                       old ns/op    new ns/op    delta
------------------------------------------------------------------
BenchmarkContainsStakeOpCodes   134599       968          -99.28%

benchmark                       old allocs   new allocs   delta
------------------------------------------------------------------
BenchmarkContainsStakeOpCodes   1            0            -100.00%

benchmark                       old bytes    new bytes    delta
------------------------------------------------------------------
BenchmarkContainsStakeOpCodes   466944       0            -100.00%
2019-03-26 14:51:34 -05:00
Dave Collins
bfab5dbb93
txscript: Add benchmark for ContainsStakeOpCodes. 2019-03-26 14:51:33 -05:00
Dave Collins
28765fa2f1
txscript: Remove unused isSStxChange function. 2019-03-26 14:51:33 -05:00
Dave Collins
89d4941164
txscript: Optimize typeOfScript stakechange detect.
This completes the process of converting the typeOfScript function to
use a combination of raw script analysis and the new tokenizer instead
of the far less efficient parsed opcodes.

In particular, it converts the detection of stake change scripts to use
raw script analysis by introducing a new function named
isStakeChangeScript which makes use of the recently added
extractStakePubKeyHash and extractStakeScriptHash functions and removes
the script parsing fallback from the typeOfScript function since this is
the final case.

The following is a before and after comparison of analyzing a large
script for both the stake change script change and the overall
GetScriptClass function which relies on the now fully converted
typeOfScript function:

benchmark                      old ns/op    new ns/op    delta
-----------------------------------------------------------------
BenchmarkIsStakeChangeScript   133810       4.39         -100.00%
BenchmarkGetScriptClass        145001       62.9         -99.96%

benchmark                      old allocs   new allocs   delta
-----------------------------------------------------------------
BenchmarkIsStakeChangeScript   1            0            -100.00%
BenchmarkGetScriptClass        1            0            -100.00%

benchmark                      old bytes    new bytes    delta
-----------------------------------------------------------------
BenchmarkIsStakeChangeScript   466944       0            -100.00%
BenchmarkGetScriptClass        466944       0            -100.00%
2019-03-26 14:51:32 -05:00
Dave Collins
123a733665
txscript: Add bench for stake change scripts. 2019-03-26 14:51:31 -05:00
Dave Collins
61872f9fb5
txscript: Remove unused isStakeRevocation function. 2019-03-26 14:51:31 -05:00
Dave Collins
8dfae89220
txscript: Optimize typeOfScript stakerev detection.
This continues the process of converting the typeOfScript function to
use a combination of raw script analysis and the new tokenizer instead
of the far less efficient parsed opcodes.

In particular, it converts the detection of stake revocation scripts to
use raw script analysis.

In order to accomplish this, it introduces a new function named
isStakeGenScript which makes of the recently added
extractStakePubKeyHash and extractStakeScriptHash functions.

The following is a before and after comparison of analyzing a large
script:

benchmark                          old ns/op    new ns/op    delta
---------------------------------------------------------------------
BenchmarkIsStakeRevocationScript   117699       4.58         -100.00%

benchmark                          old allocs   new allocs   delta
---------------------------------------------------------------------
BenchmarkIsStakeRevocationScript   1            0            -100.00%

benchmark                          old bytes    new bytes    delta
---------------------------------------------------------------------
BenchmarkIsStakeRevocationScript   466944       0            -100.00%
2019-03-26 14:51:30 -05:00
Dave Collins
9b3f4c924e
txscript: Add bench for stake revocation scripts. 2019-03-26 14:51:29 -05:00
Dave Collins
8468b0de2f
txscript: Remove unused isStakeGen function. 2019-03-26 14:51:29 -05:00
Dave Collins
5a24f508e3
txscript: Optimize typeOfScript stakegen detection.
This continues the process of converting the typeOfScript function to
use a combination of raw script analysis and the new tokenizer instead
of the far less efficient parsed opcodes.

In particular, it converts the detection of stake generation scripts to
use raw script analysis.

In order to accomplish this, it introduces a new function named
isStakeGenScript which makes of the recently added
extractStakePubKeyHash and extractStakeScriptHash functions.

The following is a before and after comparison of analyzing a large
script:

benchmark                          old ns/op    new ns/op    delta
---------------------------------------------------------------------
BenchmarkIsStakeGenerationScript   121043       4.26         -100.00%

benchmark                          old allocs   new allocs   delta
---------------------------------------------------------------------
BenchmarkIsStakeGenerationScript   1            0            -100.00%

benchmark                          old bytes    new bytes    delta
---------------------------------------------------------------------
BenchmarkIsStakeGenerationScript   466944       0            -100.00%
2019-03-26 14:51:28 -05:00
Dave Collins
c07f9cbc1b
txscript: Add bench for stake generation scripts. 2019-03-26 14:51:27 -05:00
Dave Collins
974ae66529
txscript: Remove unused isStakeSubmission function. 2019-03-26 14:51:26 -05:00
Dave Collins
5455dbce3c
txscript: Optimize typeOfScript stakesub detection.
This continues the process of converting the typeOfScript function to
use a combination of raw script analysis and the new tokenizer instead
of the far less efficient parsed opcodes.

In particular, it converts the detection of stake submission scripts to
use raw script analysis.

In order to accomplish this, it introduces three new functions.  The first
one is named extractStakePubKeyHash and works with the raw script bytes
to simultaneously determine if the script is a stake-tagged
pay-to-pubkey-hash script tagged with a specified stake opcode, and in
the case it is, extract and return the hash.  The second new function,
named extractStakeScriptHash, is similar except it detect a stake-tagged
pay-to-script-hash script tagged with a specified stake opcode.
Finally, the third function is named isStakeSubmissionScript and is
defined in terms of the former two functions.

The extract function approach was chosen because it is common for
callers to want to only extract relevant details from a script if the
script is of the specific type.  Extracting those details requires
performing the exact same checks to ensure the script is of the correct
type, so it is more efficient to combine the two into one and define the
type determination in terms of the result so long as the extraction does
not require allocations.

The following is a before and after comparison of analyzing a large
script:

benchmark                          old ns/op    new ns/op    delta
---------------------------------------------------------------------
BenchmarkIsStakeSubmissionScript   140308       4.20         -100.00%

benchmark                          old allocs   new allocs   delta
---------------------------------------------------------------------
BenchmarkIsStakeSubmissionScript   1            0            -100.00%

benchmark                          old bytes    new bytes    delta
---------------------------------------------------------------------
BenchmarkIsStakeSubmissionScript   466944       0            -100.00%
2019-03-26 14:51:25 -05:00
Dave Collins
6de8d6901d
txscript: Add bench for stake submission scripts. 2019-03-26 14:51:24 -05:00
Dave Collins
63e74185cf
txscript: Remove unused isNullData function. 2019-03-26 14:51:24 -05:00
Dave Collins
f589dd8fdf
txscript: Optimize typeOfScript nulldata detection.
This continues the process of converting the typeOfScript function to
use a combination of raw script analysis and the new tokenizer instead
of the far less efficient parsed opcodes.

In particular, it converts the detection of nulldata scripts to use both raw
script analysis and the new tokenizer.

The following is a before and after comparison of analyzing a large
script:

benchmark                   old ns/op    new ns/op    delta
--------------------------------------------------------------
BenchmarkIsNullDataScript   120800       3.81         -100.00%

benchmark                   old allocs   new allocs   delta
--------------------------------------------------------------
BenchmarkIsNullDataScript   1            0            -100.00%

benchmark                   old bytes    new bytes    delta
--------------------------------------------------------------
BenchmarkIsNullDataScript   466944       0            -100.00%
2019-03-26 14:51:23 -05:00
Dave Collins
15416b09dc
txscript: Add bench for null scripts. 2019-03-26 14:51:23 -05:00
Dave Collins
e7a172c441
txscript: Optimize typeOfScript pay-to-alt-pk-hash.
This continues the process of converting the typeOfScript function to
use a combination of raw script analysis and the new tokenizer instead
of the far less efficient parsed opcodes.

In particular, it converts the detection of pay-to-alt-pubkey-hash
scripts to use raw script analysis.

In order to accomplish this, it introduces two new functions.  The first
one is named extractPubKeyHashAltDetails and works with the raw script
bytes to simultaneously determine if the script is a
pay-to-alt-pubkey-hash script, and in the case it is, extract and return
the hash and signature type.  The second new function is named
isPubKeyHashAltScript and is defined in terms of the former.

The extract function approach was chosen because it is common for
callers to want to only extract relevant details from a script if the
script is of the specific type.  Extracting those details requires
performing the exact same checks to ensure the script is of the correct
type, so it is more efficient to combine the two into one and define the
type determination in terms of the result so long as the extraction does
not require allocations.

It is important to note that this new implementation intentionally has a
semantic difference from the existing implementation in that it will now
only pass when one of two signature types currently supported by
consensus are specified whereas previously it would allow any single
byte data push.

The following is a before and after comparison of analyzing a large
script:

benchmark                        old ns/op    new ns/op    delta
-------------------------------------------------------------------
BenchmarkIsAltPubKeyHashScript   107100       2.63         -100.00%

benchmark                        old allocs   new allocs   delta
-------------------------------------------------------------------
BenchmarkIsAltPubKeyHashScript   1            0            -100.00%

benchmark                        old bytes    new bytes    delta
-------------------------------------------------------------------
BenchmarkIsAltPubKeyHashScript   466944       0            -100.00%
2019-03-26 14:51:22 -05:00
Dave Collins
95175cb873
txscript: Add bench for pay-to-alt-pubkey-hash scripts. 2019-03-26 14:51:21 -05:00
Dave Collins
ffe80c736a
txscript: Remove unused isPubkeyHash function. 2019-03-26 14:51:21 -05:00
Dave Collins
406f851716
txscript: Optimize typeOfScript pay-to-pubkey-hash.
This continues the process of converting the typeOfScript function to
use a combination of raw script analysis and the new tokenizer instead
of the far less efficient parsed opcodes.

In particular, it converts the detection of pay-to-pubkey-hash scripts
to use raw script analysis.

In order to accomplish this, it introduces two new functions.  The first
one is named extractPubKeyHash and works with the raw script bytes
to simultaneously determine if the script is a pay-to-pubkey-hash script,
and in the case it is, extract and return the hash.  The second new
function is named isPubKeyHashScript and is defined in terms of the
former.

The extract function approach was chosen because it is common for
callers to want to only extract relevant details from a script if the
script is of the specific type.  Extracting those details requires
performing the exact same checks to ensure the script is of the correct
type, so it is more efficient to combine the two into one and define the
type determination in terms of the result so long as the extraction does
not require allocations.

The following is a before and after comparison of analyzing a large
script:

benchmark                     old ns/op    new ns/op    delta
----------------------------------------------------------------
BenchmarkIsPubKeyHashScript   165903       0.64         -100.00%

benchmark                     old allocs   new allocs   delta
----------------------------------------------------------------
BenchmarkIsPubKeyHashScript   1            0            -100.00%

benchmark                     old bytes    new bytes    delta
----------------------------------------------------------------
BenchmarkIsPubKeyHashScript   466945       0            -100.00%
2019-03-26 14:51:20 -05:00
Dave Collins
d07d626882
txscript: Add bench for pay-to-pubkey-hash scripts. 2019-03-26 14:51:19 -05:00
Dave Collins
26026475be
txscript: Optimize typeOfScript pay-to-alt-pubkey.
This continues the process of converting the typeOfScript function to
use a combination of raw script analysis and the new tokenizer instead
of the far less efficient parsed opcodes.

In particular, it converts the detection of pay-to-alt-pubkey scripts to
use raw script analysis.

In order to accomplish this, it introduces two new functions.  The first
one is named extractPubKeyAltDetails and works with the raw script bytes
to simultaneously determine if the script is a pay-to-alt-pubkey script,
and in the case it is, extract and return the relevant details.  The
second new function is named isPubKeyAltScript and is defined in terms
of the former.

The extract function approach was chosen because it is common for
callers to want to only extract relevant details from a script if the
script is of the specific type.  Extracting those details requires
performing the exact same checks to ensure the script is of the correct
type, so it is more efficient to combine the two into one and define the
type determination in terms of the result so long as the extraction does
not require allocations.

It is important to note that this new implementation intentionally
tightens the following semantics as compared to the existing
implementation:

- The signature type must now be one of the two supported types versus
  allowing any single byte data push
- The public key must now be of the correct length for the given
  signature type versus allowing any size up to 512 bytes
- The public key for schnorr secp256k1 pubkeys must now be a compressed
  public key and adhere to the strict encoding requirements for them

The following is a before and after comparison of analyzing a large
script:

benchmark                    old ns/op    new ns/op    delta
---------------------------------------------------------------
BenchmarkIsAltPubKeyScript   143449       2.99         -100.00%

benchmark                    old allocs   new allocs   delta
---------------------------------------------------------------
BenchmarkIsAltPubKeyScript   1            0            -100.00%

benchmark                    old bytes    new bytes    delta
---------------------------------------------------------------
BenchmarkIsAltPubKeyScript   466944       0            -100.00%
2019-03-26 14:51:19 -05:00
Dave Collins
e64e21c29f
txscript: Add bench for pay-to-alt-pubkey scripts. 2019-03-26 14:51:18 -05:00
Dave Collins
b273b8343c
txscript: Remove unused isPubkey function. 2019-03-26 14:51:17 -05:00
Dave Collins
1b067cb785
txscript: Optimize typeOfScript pay-to-pubkey.
This continues the process of converting the typeOfScript function to
use a combination of raw script analysis and the new tokenizer instead
of the far less efficient parsed opcodes.

In particular, it converts the detection of pay-to-pubkey scripts to use
raw script analysis.

In order to accomplish this, it introduces four new functions:
extractCompressedPubKey, extractUncompressedPubKey, extractPubKey, and
isPubKeyScript.  The extractPubKey function makes use of
extractCompressedPubKey and extractUncompressedPubKey to combine their
functionality as a convenience and isPubKeyScript is defined in terms of
extractPubKey.

The extractCompressedPubKey works with the raw script bytes to
simultaneously determine if the script is a pay-to-compressed-pubkey
script, and in the case it is, extract and return the raw compressed
pubkey bytes.

Similarly, the extractUncompressedPubKey works in the same way except it
determines if the script is a pay-to-uncompressed-pubkey script and
returns the raw uncompressed pubkey bytes in the case it is.

The extract function approach was chosen because it is common for
callers to want to only extract relevant details from a script if the
script is of the specific type.  Extracting those details requires
performing the exact same checks to ensure the script is of the correct
type, so it is more efficient to combine the two into one and define the
type determination in terms of the result so long as the extraction does
not require allocations.

The following is a before and after comparison of analyzing a large
script:

benchmark                 old ns/op    new ns/op    delta
------------------------------------------------------------
BenchmarkIsPubKeyScript   124749       4.01         -100.00%

benchmark                 old allocs   new allocs   delta
------------------------------------------------------------
BenchmarkIsPubKeyScript   1            0            -100.00%

benchmark                 old bytes    new bytes    delta
------------------------------------------------------------
BenchmarkIsPubKeyScript   466944       0            -100.00%
2019-03-26 14:51:17 -05:00
Dave Collins
c4a15275ce
txscript: Add benchmark for pay-to-pubkey scripts. 2019-03-26 14:51:16 -05:00
Dave Collins
07168b8623
txscript: Remove unused isMultiSig function. 2019-03-26 14:51:15 -05:00
Dave Collins
900af9b029
txscript: Optimize typeOfScript multisig.
This continues the process of converting the typeOfScript function to
use a combination of raw script analysis and the new tokenizer instead
of the far less efficient parsed opcodes.

In particular, for this commit, since the ability to detect multisig
scripts via the new tokenizer is now available, the function is simply
updated to make use of it.
2019-03-26 14:51:15 -05:00
Dave Collins
efd7e2f572
txscript: Remove unused isScriptHash function. 2019-03-26 14:51:14 -05:00