Daniel Cousens
76323a07d0
Transaction: restrict TxIn/TxOut constructor params
To keep this change minimal, both TxIn/TxOut still use the parameter
object for initialization. TxOut accepts only the types it uses
internally, and not hex or byte arrays for scripts.
The clone is unnecessary as a TransactionOut is never mutated after its
creation.
This resulted in TransactionOut.scriptPubKey no longer being needed,
and was removed. To access the scriptPubKey as a byte buffer, a user
can simply use:
TransactionOut.script.toBuffer()
Unfortunately, this leaves TransactionOut in a sorry state of test.
Something that needs to be fixed.
11 years ago
Daniel Cousens
63231fb67d
Extends test for custom Wallet change addresses
11 years ago
Daniel Cousens
a77846701f
Fixes network support for TxOut
11 years ago
Daniel Cousens
4012b82bec
Fixes Transaction.addOutput(Address, Number)
11 years ago
Daniel Cousens
eba08fa761
Fixes indentation for assertions
11 years ago
Wei Lu
e59f824c3a
move fixture sync script into fixtures folder
Also fixes require paths & dev dependency
11 years ago
Daniel Cousens
baa568697b
Transaction.deserialize no longer mutates input
11 years ago
Daniel Cousens
4716eb29bf
Removes redundant convert functions
11 years ago
Daniel Cousens
a8cf2fdd9e
Changes internal serialization to use Buffers instead
11 years ago
Daniel Cousens
c8bda6dde6
Adds Buffer extensions
11 years ago
Wei Lu
33b73517fe
fixes integration test dependency paths
11 years ago
Daniel Cousens
10ee5532c3
Serialize now returns a buffer
11 years ago
Daniel Cousens
d17f85f5a6
Changes fakeTxHash to actual hex
11 years ago
Daniel Cousens
09c6a787d9
Changes sequence number to an actual Number
11 years ago
Wei Lu
752aeae0d3
update integration test descriptions
11 years ago
Wei Lu
2affeda3f4
Restructure integration and coretests
Also update test script to pick up only tests directly under /test
11 years ago
Daniel Cousens
633b8f28d2
Fixes incorrect PubKey hex constant
11 years ago
Daniel Cousens
02691098de
Stretches test for derive m/0 from xpub
11 years ago
Daniel Cousens
ff08c2eec3
Fixes #167 and adds temporary test
11 years ago
Wei Lu
af1f121fd4
upgrade bigi & remove monkey patching
11 years ago
Daniel Cousens
77747241d4
Fixes exception typo
11 years ago
Daniel Cousens
b09dd73cbe
Enforces bytesToWordArray only operates on byte arrays
11 years ago
sidazhang
fe4332bfbd
integration tests for scripthash transcations
11 years ago
Wei Lu
70219c877b
Fixes signScriptSig test
11 years ago
William Cotton
8f698d19f7
custom changeAddress has full integration test
11 years ago
William Cotton
dfbfdafc94
added tests for createTx testnet and createTx custom changeAddress
11 years ago
Daniel Cousens
e40377a471
Removes unused functions from convert
11 years ago
Daniel Cousens
8ad8f6f169
Renames p2shsign to signScriptSig
11 years ago
Daniel Cousens
fbf8211cab
Adds tests for TX.prototype.p2shsign
11 years ago
Daniel Cousens
1c52f9f3d8
Removes convert module
11 years ago
Daniel Cousens
5546cae928
Removes type coercion for a stricter TX API
11 years ago
Daniel Cousens
c3e9d568c5
Adds RFC6979 test vectors and fixes ecdsa.sign/detGenK
11 years ago
Daniel Cousens
df6ea8aea2
Removes toPaddedBuffer and extends toBuffer
11 years ago
Daniel Cousens
d8883e8d32
Adds BI.toPaddedBuffer and toBuffer
11 years ago
Daniel Cousens
bc37e65014
Enforces Array input for deterministicGenerateK
11 years ago
Daniel Cousens
ae60e6eb95
Replacse JSBN with bigi
11 years ago
Daniel Cousens
b95b5d5a04
Removes unused imports and unused parameter
11 years ago
Daniel Cousens
873dc95321
Isolates test/ec.js ECPointFp.decodeFrom tests
11 years ago
Daniel Cousens
96ebb65099
Removes ecdsa.getBigRandom
11 years ago
Daniel Cousens
f5ce83beca
Adds working implementation of Script.createP2SHMultisigScriptSig
11 years ago
Daniel Cousens
c178804356
Updates test fixtures to use bitcoin core test data
11 years ago
Daniel Cousens
231ccdd721
Now shares base58 data with Address base58 tests
11 years ago
Daniel Cousens
1bcc7cfd95
Adds shared base58 test vectors
11 years ago
Daniel Cousens
12a5b75cbe
Address now properly checks malformed base58
11 years ago
Daniel Cousens
dd049fc764
Adds magicHash test fixtures
11 years ago
Daniel Cousens
69823552c3
Moves network import to top
11 years ago
Daniel Cousens
5515fa6c49
Removes convert module usage
11 years ago
Daniel Cousens
7f8dcd58cb
Removes unused imports
11 years ago
Daniel Cousens
6edd97d4fd
Removes convert usage
11 years ago
Daniel Cousens
1d1306b054
Removes Address.fromPubKey and improves test vectors
11 years ago