Daniel Cousens
ec9cea0cf1
tests: use strictEqual always
10 years ago
Daniel Cousens
2f100e0eae
tests: add failing pushDataInt fixtures
10 years ago
Daniel Cousens
7f3b4c93ba
TxBuilder: move param coercion from Transaction to TxBuilder
10 years ago
Daniel Cousens
8d3686d046
remove deprecated functionality
10 years ago
Daniel Cousens
399803affa
use standardjs formatting
10 years ago
Daniel Cousens
445eb260c0
tests: add failing Coinbase transaction fixture
10 years ago
Daniel Cousens
db17e35013
tests: transaction.add* better tested by raw functions
10 years ago
Daniel Cousens
7a515a14ee
tests: use beforeEach for initialization
10 years ago
Bez Reyhan
1c6d5a28a9
update fixtures and tests for merge
10 years ago
Daniel Cousens
fc690d418b
tests: rename txid to id in Transaction context
10 years ago
Daniel Cousens
ca4e64d071
tests: use ASM for fixtures, avoid JSON comparison
10 years ago
Daniel Cousens
929d926774
tests: make use of the default behaviour
10 years ago
Daniel Cousens
062540e3d9
Transaction: optional script for addInput
10 years ago
Daniel Cousens
884fd542fe
Transaction: deprecate Tx signing methods
11 years ago
Daniel Cousens
8eaf44881a
Transaction: improve hash length checking + tests
11 years ago
Daniel Cousens
d07cfccbc1
Transaction: move constants to Transaction
11 years ago
Daniel Cousens
4850570955
Transaction: remove untestable assert
Also changes the fromBuffer sanity test to use a clearer message that is
taken from the fixtures.
11 years ago
Daniel Cousens
1b1b550bd6
Transaction: add hash as addInput parameter
11 years ago
Daniel Cousens
0b17c2bc3d
Transaction: re-adds getHash as a pure hash
11 years ago
Daniel Cousens
6c9f95c253
Transaction: add sequence parameter to addInput
11 years ago
Daniel Cousens
6ea89eeaae
Transaction: data driven tests
11 years ago
Daniel Cousens
c0e5393595
Transaction: remove .outpoint object
11 years ago
Daniel Cousens
203d6c7116
Transaction: add test for clone
11 years ago
Daniel Cousens
d567463588
Transaction: remove estimateFee
This is a wallet abstraction.
11 years ago
Daniel Cousens
009fcb9b82
Transaction: now returns index of added input/output
11 years ago
Daniel Cousens
4f995fcae1
Transaction: tests should show unboxing of parameters
11 years ago
Daniel Cousens
3b3d19974c
tests: avoid b2h where toHex exists
11 years ago
Daniel Cousens
66636f56bb
Transaction: test hex formatting
11 years ago
Daniel Cousens
6ac3803483
Transaction: move test to proper section
11 years ago
Daniel Cousens
3b6f0bb9b3
Transaction: fix test name
11 years ago
Daniel Cousens
f85792ba22
Transaction: remove address from txOut
11 years ago
Daniel Cousens
5551c38812
Transaction: use hash Buffer instead of hex string
11 years ago
Daniel Cousens
bdc7131d0e
Transaction: renames getHash to getId
In turn also removes the inherent calculation of tx.hash after deserialization.
11 years ago
Daniel Cousens
867465a03f
Transaction: support non-addressable output scripts
11 years ago
Daniel Cousens
5bd636cab7
Transaction: remove TxIn/TxOut from API
11 years ago
Daniel Cousens
a6b9dd9473
Transaction: remove hash:index notation
11 years ago
Daniel Cousens
8b5647b0b9
Transaction: remove TxIn/TxOut exports
11 years ago
Daniel Cousens
b0317be4d5
tests: formatting
11 years ago
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.
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
9a72c7437b
Script: adds Script.EMPTY constant
11 years ago
Daniel Cousens
2dec1375a1
ecdsa: use (r, s) values directly
11 years ago
Daniel Cousens
0468c4710c
Transaction: rename (de)serialize to [to/from]Buffer
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
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