Wei Lu
75218e784f
Transaction fee calculation does not need BigInteger
11 years ago
Wei Lu
7bd312de71
get rid of magic numbers in fee estimation
11 years ago
Wei Lu
3d12d3b038
implement and use txOut.scriptPubKey
11 years ago
Wei Lu
b7d65fb757
Transaction is able to estimate fees
11 years ago
Wei Lu
c3880c0cdf
script.toAddress -> script.getToAddress
11 years ago
Daniel Cousens
36af0223de
Strict comparison operators with 0
11 years ago
Daniel Cousens
a062297be2
Uses Array.prototype.foreach for stricter scoping
11 years ago
Daniel Cousens
87453f1828
Fixes variable redeclarations
11 years ago
Daniel Cousens
ed137a3b9d
Various stylistic changes
11 years ago
Daniel Cousens
f580516c06
Removes unused variables
11 years ago
Daniel Cousens
b40374e332
Changes to new version-less ECKey API
11 years ago
Kyle Drake
40881a7dd8
add back SIGHASH code to transaction
11 years ago
Kyle Drake
28e146431c
Many cleanups to Transaction, see detailed.
Default-ize the sequence rather than use a number, and default to bytes
for input. I doubt anybody ever uses this anyways.
Remove weird convenience code, and remove wallet logic. Checking a TX's
affects on a wallet should be managed by the wallet object.
Remove parsing for the weirder SIGHASH types. People use this library
for creating SIGHASH_ALL transactions, and I don't see the need to
support these other types at the moment since this library's more used
for wallets than for hardcore bitcoin tx analysis/creation. They weren't
tested anyways.
Add note about potentially improving performance by providing
pubkey/address. Deriving from the private key is slower, that
information should probably be cached by the end user.
11 years ago
Wei Lu
2e6ef6cb85
fix and add tests for addInput
11 years ago
Wei Lu
a5ee07f7f6
Add tests to transaction deserialization
lock_time -> locktime
11 years ago
Pablo Martin
2e26a137d5
require crypto-js/sha256 instead of ./crypto-js/sha256.
11 years ago
Pablo Martin
8f383be325
fix transaction hashing (was using Message.getHash incorrectly).
11 years ago
Wei Lu
3d6b66e811
move convert methods from util to convert
11 years ago
Wei Lu
45e55a07b0
fix transaction serialization/deserialization
[closes #58 ]
11 years ago
Wei Lu
a281a5ab53
migrate crypto-js to 3.1.2
11 years ago
Wei Lu
bde9b13b15
remove isArray shim
[closes #40 ]
11 years ago
Vitalik Buterin
7919c8cfc5
Added auto-instantiators to classes
11 years ago
Vitalik Buterin
30e8b572d6
Added deterministic signing and added a public key class. Note that getPub should now be replaced with getPub().export('bytes')
11 years ago
vub
1780f4a98f
Updated deterministic wallet; theoretically works now if properly combined with server
11 years ago
vub
93e50e9433
Started work on wallet, and added hex serialization
11 years ago
vub
aa22b9d89e
Added a new way of adding an output to a transaction
11 years ago
vub
a34bc9e2ea
Many small improvements
11 years ago
vub
45ec63d2f1
Whoops...
11 years ago
vub
274112005f
Beefed up TransactionIn constructor
11 years ago
vub
f53a4e3ffa
Added sign with keys method to transaction and did lots of small cleanups
11 years ago
vub
917822541c
Fixed serialization bug
11 years ago
vub
7bfd72c8c4
Replaced bigints with plain integers for transaction values
11 years ago
vub
b8023389fd
Reversed txhash
11 years ago
vub
8fb725f796
Made TransactionOut take numbers as input
11 years ago
vub
2bfa783be2
Added hash flipping to serialization and deserialization
11 years ago
vub
50f6333b0e
Changed i -> index in Transaction.prototype.sign
11 years ago
vub
038f8d5d99
Removed direct references to Bitcoin
11 years ago
vub
a753f069a5
Fixed bug in numToBytes and util -> conv
11 years ago
vub
f95b08a576
Replaced Crypto.util and util (was a typo) with conv
11 years ago
vub
38ea108183
Bugfix
11 years ago
vub
cb70b4425b
Substituted in numToBytes
11 years ago
vub
65abb85668
Added to convert.js and some more multisig methods
11 years ago
vub
e43d23235b
Added some transaction methods, and removed all internal use of base64
11 years ago
vub
9922864da4
Added deserialization, made some modifications
11 years ago
Roman Shtylman
981203e982
fix transaction processing for wallets
12 years ago
Roman Shtylman
0faac29134
start to split into node commonjs style modules
- no longer is the global Bitcoin used for modules
- cleaner and more maintainable code
- add more tests
12 years ago
Stefan Thomas
c2ce224d1b
Remove debugging statements. Fixes #8 .
13 years ago
Stefan Thomas
09e8c6e184
Added comments.
13 years ago
Stefan Thomas
1a7fc9d063
Fixed indents.
13 years ago
Stefan Thomas
27ceffaee3
Split getDescription() into two functions.
14 years ago