junderw
|
d684a6b2ef
|
Fix compiler errors, tests, and scripts
|
6 years ago |
Daniel Cousens
|
16195cc6ce
|
explicitly import mocha variables
|
7 years ago |
Daniel Cousens
|
a5db0a4e44
|
sed -i 's/ var / const /', with const->let fixes
|
7 years ago |
Daniel Cousens
|
91b8823aa8
|
sed -i 's/^var /const /'
|
7 years ago |
Daniel Cousens
|
7592a6bcc2
|
script: rename isCanonicalSignature to isCanonicalScriptSignature
|
7 years ago |
Daniel Cousens
|
581f57ff6f
|
script/tx: decompile returns maybe chunks
|
7 years ago |
Daniel Cousens
|
deb8b0f7d8
|
tests: script tests can validate template fixtures too
|
7 years ago |
Daniel Cousens
|
e7c59c4b8b
|
script: use asMinimalOP for ASM/decompile
|
7 years ago |
Daniel Cousens
|
f1ab151c31
|
tests: use safe-buffers throughout
|
8 years ago |
Daniel Cousens
|
a86e905611
|
script: add fromASM failing test case and fix
|
8 years ago |
Thomas Kerin
|
d0b4f0adf7
|
Add tests ensuring stacks can be converted back to ASM
|
8 years ago |
Daniel Cousens
|
ff68116ee9
|
tests: separate templates and script tests
|
8 years ago |
Daniel Cousens
|
b2a2a2a136
|
tests: add toScript tests
|
8 years ago |
Daniel Cousens
|
2bb021ab64
|
rm *PushOnly, add isPushOnly and toStack
|
8 years ago |
Thomas Kerin
|
0696ca95b6
|
Script: add {compile,decompile}PushOnly
|
8 years ago |
Daniel Cousens
|
69d8e9ed9e
|
move templates to templates/index.js
|
8 years ago |
Daniel Cousens
|
a5e65ab977
|
tests: remove tests for missing witnessScriptHash.input.encode
|
8 years ago |
Daniel Cousens
|
d9fa39a2cc
|
scripts: extract all scripts to encode/decode/check style
|
8 years ago |
Thomas Kerin
|
27b48e8aa2
|
Add methods to decode information from output scripts
|
8 years ago |
Daniel Cousens
|
c1570f8056
|
script: always compile in a minimaldata compliant way
|
8 years ago |
Daniel Cousens
|
d96b7036fb
|
tests: add BIP62 compliance tests
|
8 years ago |
Daniel Cousens
|
20a026aefe
|
scripts/tests: add witness* scripts
|
9 years ago |
Daniel Cousens
|
dca7a38362
|
tests: remove unnecessary branch, fix bscript.fromHex undefined
|
9 years ago |
Daniel Cousens
|
2d75b7e7ff
|
standard: remove padded Blocks
|
9 years ago |
Daniel Cousens
|
8934de591c
|
use baddress/bcrypto/bscript for ambuigities
|
9 years ago |
Daniel Cousens
|
6ec687deba
|
rename scripts to script
|
9 years ago |
Daniel Cousens
|
706f5d7a9c
|
scripts: adds tests for *HashOutput
|
10 years ago |
Daniel Cousens
|
e2abe2b3af
|
merge Script/scripts
|
10 years ago |
Daniel Cousens
|
151386c46d
|
scripts: remove coercion, fromASM returns Buffer
|
10 years ago |
Daniel Cousens
|
e05f8a542d
|
remove Script object
|
10 years ago |
Daniel Cousens
|
e743c58ed6
|
remove usage of instanced Scripts
|
10 years ago |
Daniel Cousens
|
588b346f5d
|
ECPair: cease using Address for address encoding
|
10 years ago |
Daniel Cousens
|
ec9cea0cf1
|
tests: use strictEqual always
|
10 years ago |
Daniel Cousens
|
4c8b0f38ea
|
replace ECKey/ECPubKey with ECPair
|
10 years ago |
Daniel Cousens
|
4333217bdd
|
tests: add example non-standard scripthash
|
10 years ago |
Daniel Cousens
|
d00ec9af29
|
scripts: fix isScriptHashInput classification
|
10 years ago |
Daniel Cousens
|
af3491822e
|
scripts: multisigInput only uses scriptPubKey for validation, OP_0 validation not necessary
|
10 years ago |
Daniel Cousens
|
399803affa
|
use standardjs formatting
|
10 years ago |
Daniel Cousens
|
4bcd169f6d
|
tests: actually run invalid tests
|
10 years ago |
Daniel Cousens
|
c35d4b46c5
|
scripts: add allowIncomplete for multisig scripts
|
10 years ago |
Daniel Cousens
|
0524ced984
|
scripts: enforce pubKeys as type ECPubKey
|
10 years ago |
Daniel Cousens
|
254974d999
|
scripts: add TODO for tests for isCanonical* functions
|
10 years ago |
Daniel Cousens
|
e4eb743cf9
|
scripts: expose is* classifiers
|
10 years ago |
Daniel Cousens
|
62e86e0dc1
|
scripts: s/dataOutput/nullDataOutput/
|
10 years ago |
Daniel Cousens
|
ea66edeb5c
|
scripts: add dataOutput convenience function
|
10 years ago |
Daniel Cousens
|
f3138dcb68
|
tests: test non-standard pathway for classifyInput
|
10 years ago |
Daniel Cousens
|
759bba5c21
|
scripts: add falsy classifications and fix multisig
|
11 years ago |
Daniel Cousens
|
5c53178c3c
|
tests: avoid pointless toASM in description
|
11 years ago |
Daniel Cousens
|
13d41f67e9
|
Script: adds toASM/fromASM
|
11 years ago |
Daniel Cousens
|
924ecfb998
|
scripts: add missing test data
|
11 years ago |