Daniel Cousens
78d26c2e26
Wallet: add 2.0.0 deprecation message
11 years ago
Daniel Cousens
deaf06b350
Wallet: use enforceType where applicable
11 years ago
Daniel Cousens
f028dfffa9
Wallet: fix missing variable utxo
11 years ago
Daniel Cousens
4e04a7e883
Transaction: use isFinite over Number.isFinite
11 years ago
Daniel Cousens
6c5a68207a
Transaction: use isFinite instead over typeof number
11 years ago
Daniel Cousens
b727a65ea0
Wallet: refactor to use Array unspents solely, deprecating unspentsMap
11 years ago
Daniel Cousens
06f13db8d7
Wallet: rename outputs to unspentsMap
11 years ago
Daniel Cousens
d24fdef585
Wallet: consistent variable naming
11 years ago
Daniel Cousens
02e71e430c
Wallet: revert 2f00c9a
11 years ago
Daniel Cousens
71d4c78b88
bufferutils: add Buffer reverse
11 years ago
Daniel Cousens
33955a7fb5
Wallet: store txHash, vout separately instead of "from: txid:vout"
11 years ago
Daniel Cousens
735feab7ba
Wallet: remove txId:index storage for spent outputs
11 years ago
Daniel Cousens
26b028adcf
Wallet: use TxBuilder instead
11 years ago
Daniel Cousens
897bbf4eb4
Wallet: assign indexOf in the same step
11 years ago
Daniel Cousens
9620b68fe2
Wallet: use __processTx over a free function
The use of bind in this case wasn't idiomatic.
11 years ago
Daniel Cousens
300facf7aa
Wallet: use === when comparing with undefined
11 years ago
Daniel Cousens
4bb7f5b56d
Wallet: use indexOf explicitly over include*
11 years ago
Wei Lu
e55676cf8e
Wallet: remove unncessary comments
11 years ago
Wei Lu
00d58604a4
Wallet: move getPrivateKeyForAddress to prototype
also, move the assert to the end to simplify the logic
11 years ago
Wei Lu
2b4d94cd92
Wallet: move processPendingTx & processConfirmedTx to prototype
also, move processTx out of Wallet scope
11 years ago
Daniel Cousens
c13177bb29
Wallet: rename masterkey to masterKey
11 years ago
Daniel Cousens
6df785bb65
Wallet: move createTx to prototype
11 years ago
Daniel Cousens
7fd41fae4a
Wallet: move most instance methods to prototype
11 years ago
Daniel Cousens
2f00c9ab35
Wallet: rework unspents to primarily work on initialization
The RegExp for the UTXO validation was removed as the errors are now
more verbose and specific to each case.
11 years ago
Daniel Cousens
7c22067f69
Wallet: clarify getPrivateKeyForAddress method structure
This does repeat the O(n) lookup several times, but that can be fixed by
using an O(1) lookup instead (and will be later).
Clarity first.
11 years ago
Daniel Cousens
abc3e6c715
Wallet: move estimatePaddedTxFee out of Wallet scope
11 years ago
Daniel Cousens
8b3470e8ca
Wallet: move all free functions out of Wallet scope
11 years ago
Daniel Cousens
d618aa9822
Wallet: deprecates newMasterKey
11 years ago
Daniel Cousens
8e0c835919
package: use crypto-browserify 3.0.0
11 years ago
Wei Lu
f7af487597
wallet: reintroduce output.to to track pending spent utxo
11 years ago
Wei Lu
82b1d8fbdc
wallet: do not delete pending incoming tx from outputs
11 years ago
Wei Lu
79a17d67ec
wallet: do not overestimate fees when network has dustSoftThreshold
11 years ago
Wei Lu
7e31668b69
wallet: rename utxo.receive to utxo.from
11 years ago
Wei Lu
7e98123ccd
wallet.getUnspentOutputs includes the pending field
11 years ago
Wei Lu
bc3e0770f9
Add fee estimation functions for dogecoin and litecoin
11 years ago
Wei Lu
122b613eaf
Move fee estimation into networks.js
11 years ago
Wei Lu
45a72416c9
wallet: Move dust and fee per kb into networks.js
11 years ago
Daniel Cousens
c0e5393595
Transaction: remove .outpoint object
11 years ago
Daniel Cousens
2a267b62e6
jshint: remove unused variables
11 years ago
Daniel Cousens
d567463588
Transaction: remove estimateFee
This is a wallet abstraction.
11 years ago
Daniel Cousens
5551c38812
Transaction: use hash Buffer instead of hex string
11 years ago
Daniel Cousens
2f56e63491
Wallet: avoid transaction inspection when signing
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
a6b9dd9473
Transaction: remove hash:index notation
11 years ago
Daniel Cousens
8b5647b0b9
Transaction: remove TxIn/TxOut exports
11 years ago
Daniel Cousens
55ff383c7b
Wallet: remove superfluous false parameter
This parameter is unnecessary.
The use of `false` causes the default parameter to be used instead; even though the absence of such would also cause said behaviour to occur.
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
Wei Lu
f53e35ed28
wallet: delete utxo instead of marking it as spend
11 years ago
Wei Lu
d265b53b03
wallet: processTx -> processConfirmedTx, processPendingTx
11 years ago
Wei Lu
e064e9d29d
wallet.createTx ignores pending utxo
11 years ago