Matias Alejo Garcia
5fa384603f
Update transaction.js
Fixes https://github.com/bitpay/bitcore/issues/1036
10 years ago
Esteban Ordano
979d284567
Transaction: add `removeInput` member
10 years ago
Esteban Ordano
e568a8786c
Transaction: Fix wrong logic on input addition
10 years ago
Manuel Araoz
c664f211d2
add BufferReader.readVarLengthBuffer
10 years ago
Esteban Ordano
1f45e88268
Add fee to serialization
10 years ago
Esteban Ordano
ed393dcb91
Update change on each output or input change
10 years ago
Esteban Ordano
bd97f20f1c
Use addInput in _fromNonP2SH
10 years ago
Manuel Araoz
b9be679e09
add some checks
10 years ago
Esteban Ordano
614a228c79
Allow satoshis to be a string on output creation
10 years ago
Manuel Araoz
2b3ce4de12
adds a test and small fix for transaction
10 years ago
Esteban Ordano
f3663e26d6
Don't add the same input twice
10 years ago
Esteban Ordano
8d68e9cb02
Use satoshisBN internally
10 years ago
Esteban Ordano
bdeac4e67d
Add inspect method to output
10 years ago
Esteban Ordano
0f73c3f7a3
Throw error if dust amount is detected
10 years ago
Esteban Ordano
ff82ccec71
Return undefined instead of a null signature
10 years ago
Esteban Ordano
dc6ff32290
Make serialization roundtrip recover info about inputs
10 years ago
Esteban Ordano
d053599fd2
Improve test coverage
10 years ago
Esteban Ordano
fe86abc093
Add `change` when serializing transaction
10 years ago
Yemel Jardi
e57d02c03c
Use define immutable helper
10 years ago
Braydon Fuller
bce28cd227
Fixed bug in IE11 that would cause MAX_MONEY verification test to fail.
10 years ago
Esteban Ordano
7cf826249b
Add jsdocs and documentation to UnspenOutput and Insight
10 years ago
Esteban Ordano
11975bc0df
Rename UTXO to Transaction.UnspentOutput
10 years ago
Esteban Ordano
476f009b4d
Add Insight and UTXO class
10 years ago
Esteban Ordano
dbf47ef78f
transaction: better errors for signature methods
Closes #868
10 years ago
Manuel Araoz
fb57a60666
fix all tests
10 years ago
Manuel Araoz
370f69df88
refactor BN and ECDSA
10 years ago
Esteban Ordano
99db72ba90
Add `uncheckedAddInput` function
* For internal usage: for example, testing Script.Interpreter
10 years ago
Esteban Ordano
9a73338c91
Add tests for changes to Transaction interface
10 years ago
Braydon Fuller
6d42e01718
Fix formatting issue with examples
10 years ago
Esteban Ordano
e5631b1a69
Modify transaction interface
* Add checks when serializing
* Add default _estimateSize to generic inputs
* Fix multisig size estimation
* Change _addOutput to addOutput
* Add addInput and using that internally
* Split `getFee` out from `_updateChangeOutput`
10 years ago
Esteban Ordano
24dc84d614
Dont lose sighash when signing with multiple keys
10 years ago
Esteban Ordano
a352937566
Fix transaction order
10 years ago
Esteban Ordano
6be0c047b7
Update index for the documentation
10 years ago
Manuel Araoz
84deec297a
add tx_invalid tests
10 years ago
Esteban Ordano
f7f7d147c6
Add change features
10 years ago
Esteban Ordano
ce8927690f
Add count for missing signatures
10 years ago
Manuel Araoz
b3be9461cf
tx_valid tests passing!
10 years ago
Esteban Ordano
d4b8c4adc6
Remove globals
10 years ago
Esteban Ordano
ed9a9f6da9
Fix wrong jsdocs
10 years ago
Manuel Araoz
4fcc048311
script interpreting working
10 years ago
Manuel Araoz
49192a1ed7
style change to BufferUtil
10 years ago
Manuel Araoz
ddd11e908c
all script_valid tests passing!
10 years ago
Manuel Araoz
0ddec23c02
fix some more tests
10 years ago
Manuel Araoz
a761ac91c2
some more passing tests
10 years ago
Manuel Araoz
73874ae873
import Sighash
10 years ago
Manuel Araoz
9aa6152f25
trying to fix OP_CHECKSIG script evaluation
10 years ago
Esteban Ordano
de4d2884c7
Modify Transaction to use Multisig
* Allow `Script#add` to add a Script causing concatenation of opcodes
* Add `Script#equals` to compare scripts
* Add `Script#fromAddress`
* Drop `_payTo` methods
* Add `Script.buildP2SHMultisigIn`
Greatly simplifying the internal transaction object
10 years ago
Esteban Ordano
1535805f1c
Add PublicKeyHashInput class
10 years ago
Esteban Ordano
af43228daf
Add `PublicKeyHashInput` and `ScriptHashInput`.
Remove `_outpoints`, `_utxos` from Transaction, as that info
can be efficiently retrieved from the inputs
10 years ago
Braydon Fuller
b13c4fb0c9
Added inspect prototype G5
10 years ago