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
Daniel Cousens
c637cb4be7
tests: remove unused import
11 years ago
Daniel Cousens
576fbbfff5
scripts: switch to failing to classification tests
11 years ago
Daniel Cousens
62b6a407a6
scripts: break tests down from type structure
11 years ago
Daniel Cousens
9b89a267ca
scripts: remove unused imports
11 years ago
Daniel Cousens
576d5dfa3f
Scripts: move test data to fixtures
11 years ago
Daniel Cousens
553ade1208
network: always use lowercase
11 years ago
Daniel Cousens
b68b1d5da4
Script: fixes pubKeyInput and adds a test
11 years ago
Daniel Cousens
41c3b68293
templates: rename to scripts
11 years ago
Daniel Cousens
00cec9ce64
Script: move all templates to templates.js
11 years ago
Daniel Cousens
aded938ab6
Script: check hex not template result
11 years ago
Daniel Cousens
4e04eea436
Script: use fromChunks internally for all Script templates
11 years ago
Daniel Cousens
f20ffec8b3
tests: always use for, it testing style
11 years ago
Daniel Cousens
7d94d1b068
Script: add fromChunks and without
11 years ago
Daniel Cousens
b05d17f904
Script: adds missing exception regex
11 years ago
Daniel Cousens
778aab104e
tests: fix #198 indentation
11 years ago
John Russell
343289229e
ensures that pubKey length is greater than m
ensure that pubKey length is greater than m
use Array.isArray over instanceof
error message
11 years ago
Daniel Cousens
08951be66f
Script: add createPubKeyScriptPubKey
11 years ago
Kyle Drake
f545ed1279
remove crypto hash transition code
11 years ago
Daniel Cousens
b2351f9026
tests: use JSON fixtures exclusively
11 years ago
Daniel Cousens
55681e7e5d
Script: use PubKey objects not prebuilt Buffers
11 years ago
Daniel Cousens
6c0eebe94b
tests: use filepaths directly
After a long IRC discussion, it was decided that the use of direct
filepaths instead of the module is a more pure form of testing ,
although it may provide less overall coverage than the mixed integration
style imports used previously.
This will need to be remedied by further integration testing in
/test/integration.
11 years ago
Daniel Cousens
7a740c2e7b
tests: forces consistent import syntax
11 years ago
Daniel Cousens
f18c5e4c1e
Script: removes Script.createP2SHMultiSigScriptSig
It is favoured to compose the scriptSig manually using
Script.createP2SHScriptSig and Script.createMultisigScriptSig.
Added a test to verify that createMultisigScriptSig throws when not
enough signatures a provided and the redeemScript is given.
11 years ago
Daniel Cousens
f8e662e495
Script: rename toScriptHash to getHash and add tests
11 years ago
Daniel Cousens
cace8316e4
Script: extract test data to fixture
11 years ago
Daniel Cousens
708aa03390
Transaction/Script: bitcoin network no longer implied
A Transaction (and its subsequent scripts) do not carry any network
specific information in the Bitcoin protocol.
Therefore they can not (without further context) produce the network
specific constants for the generation of the base58 Addresses.
As TransactionOut.address is used heavily throughout Wallet and other
areas of the library, this could not be entirely removed without a large
number of changes.
For now, TransactionOut.address is only defined in the case of
Tx.addOutput being used directly:
Transaction.addOutput(address, value)
11 years ago