Daniel Cousens
fa54ba4f82
tests/transaction: add test for target Buffer
2016-08-10 11:44:09 +10:00
Daniel Cousens
4898cc7b67
tests: add tests for Transaction.hashForSignature
2016-06-22 14:45:49 +10:00
Daniel Cousens
ea2a7449ad
tests: add isCoinbase tests and flags to fixtures
2016-05-03 21:51:30 +10:00
Daniel Cousens
2d75b7e7ff
standard: remove padded Blocks
2015-09-05 14:10:32 +10:00
Daniel Cousens
6ec687deba
rename scripts to script
2015-08-20 13:55:13 +10:00
Daniel Cousens
e2abe2b3af
merge Script/scripts
2015-08-18 14:44:30 +10:00
Daniel Cousens
151386c46d
scripts: remove coercion, fromASM returns Buffer
2015-08-18 14:44:30 +10:00
Daniel Cousens
e05f8a542d
remove Script object
2015-08-18 14:44:29 +10:00
Daniel Cousens
e743c58ed6
remove usage of instanced Scripts
2015-08-18 14:44:29 +10:00
Daniel Cousens
ec9cea0cf1
tests: use strictEqual always
2015-05-07 11:29:20 +10:00
Daniel Cousens
2f100e0eae
tests: add failing pushDataInt fixtures
2015-03-04 20:47:52 +11:00
Daniel Cousens
7f3b4c93ba
TxBuilder: move param coercion from Transaction to TxBuilder
2015-03-02 17:51:14 +11:00
Daniel Cousens
8d3686d046
remove deprecated functionality
2015-03-02 17:27:16 +11:00
Daniel Cousens
399803affa
use standardjs formatting
2015-02-24 12:45:38 +11:00
Daniel Cousens
445eb260c0
tests: add failing Coinbase transaction fixture
2015-02-19 12:51:24 +11:00
Daniel Cousens
db17e35013
tests: transaction.add* better tested by raw functions
2015-02-19 12:32:05 +11:00
Daniel Cousens
7a515a14ee
tests: use beforeEach for initialization
2015-02-19 08:59:10 +11:00
Bez Reyhan
1c6d5a28a9
update fixtures and tests for merge
2014-12-15 19:21:34 -08:00
Daniel Cousens
fc690d418b
tests: rename txid to id in Transaction context
2014-12-13 09:48:31 +11:00
Daniel Cousens
ca4e64d071
tests: use ASM for fixtures, avoid JSON comparison
2014-12-13 09:41:52 +11:00
Daniel Cousens
929d926774
tests: make use of the default behaviour
2014-10-17 14:22:51 +11:00
Daniel Cousens
062540e3d9
Transaction: optional script for addInput
2014-10-17 14:16:07 +11:00
Daniel Cousens
884fd542fe
Transaction: deprecate Tx signing methods
2014-08-16 17:36:06 +10:00
Daniel Cousens
8eaf44881a
Transaction: improve hash length checking + tests
2014-06-17 20:18:39 +10:00
Daniel Cousens
d07cfccbc1
Transaction: move constants to Transaction
2014-06-17 12:26:14 +10:00
Daniel Cousens
4850570955
Transaction: remove untestable assert
...
Also changes the fromBuffer sanity test to use a clearer message that is
taken from the fixtures.
2014-06-17 12:24:35 +10:00
Daniel Cousens
1b1b550bd6
Transaction: add hash as addInput parameter
2014-06-17 12:23:27 +10:00
Daniel Cousens
0b17c2bc3d
Transaction: re-adds getHash as a pure hash
2014-06-17 12:22:13 +10:00
Daniel Cousens
6c9f95c253
Transaction: add sequence parameter to addInput
2014-06-17 12:21:09 +10:00
Daniel Cousens
6ea89eeaae
Transaction: data driven tests
2014-06-17 11:55:43 +10:00
Daniel Cousens
c0e5393595
Transaction: remove .outpoint object
2014-06-16 14:21:40 +10:00
Daniel Cousens
203d6c7116
Transaction: add test for clone
2014-06-16 14:21:40 +10:00
Daniel Cousens
d567463588
Transaction: remove estimateFee
...
This is a wallet abstraction.
2014-06-16 14:21:39 +10:00
Daniel Cousens
009fcb9b82
Transaction: now returns index of added input/output
2014-06-16 14:21:39 +10:00
Daniel Cousens
4f995fcae1
Transaction: tests should show unboxing of parameters
2014-06-16 14:21:39 +10:00
Daniel Cousens
3b3d19974c
tests: avoid b2h where toHex exists
2014-06-16 14:21:39 +10:00
Daniel Cousens
66636f56bb
Transaction: test hex formatting
2014-06-16 14:21:39 +10:00
Daniel Cousens
6ac3803483
Transaction: move test to proper section
2014-06-16 14:21:39 +10:00
Daniel Cousens
3b6f0bb9b3
Transaction: fix test name
2014-06-16 14:21:39 +10:00
Daniel Cousens
f85792ba22
Transaction: remove address from txOut
2014-06-16 14:21:39 +10:00
Daniel Cousens
5551c38812
Transaction: use hash Buffer instead of hex string
2014-06-16 14:21:39 +10:00
Daniel Cousens
bdc7131d0e
Transaction: renames getHash to getId
...
In turn also removes the inherent calculation of tx.hash after deserialization.
2014-06-16 14:21:39 +10:00
Daniel Cousens
867465a03f
Transaction: support non-addressable output scripts
2014-06-16 14:21:38 +10:00
Daniel Cousens
5bd636cab7
Transaction: remove TxIn/TxOut from API
2014-06-16 14:21:38 +10:00
Daniel Cousens
a6b9dd9473
Transaction: remove hash:index notation
2014-06-16 14:21:38 +10:00
Daniel Cousens
8b5647b0b9
Transaction: remove TxIn/TxOut exports
2014-06-16 14:21:38 +10:00
Daniel Cousens
b0317be4d5
tests: formatting
2014-06-16 14:21:38 +10:00
Daniel Cousens
7e5af52cd1
Transaction: mass rename from SPK/SS to Input/Output
...
I think it is important we maintain some reasoning that an Input script
is actually a script signature, but in the end, these names are more
coherent and understandable when reasoning with our code. So I think
its OK we break tradition with bitcoind.
2014-06-13 11:36:31 +10:00
Daniel Cousens
41c3b68293
templates: rename to scripts
2014-06-13 10:52:07 +10:00
Daniel Cousens
00cec9ce64
Script: move all templates to templates.js
2014-06-13 10:52:07 +10:00