Daniel Cousens
c44af2109e
Uses typeof address === 'string' instead
11 years ago
Daniel Cousens
92f1c3e319
Fixes Transaction.addOutput() param handling to match documentation
Now (horrendously) supports other networks
11 years ago
Daniel Cousens
1d1306b054
Removes Address.fromPubKey and improves test vectors
11 years ago
Daniel Cousens
682ec133bb
Migrates Address to stricter API subset
11 years ago
Daniel Cousens
b4f70dcdde
Migrates ECKey to stricter API
11 years ago
Daniel Cousens
6de94856e3
Makes ECDSA capitalization consistent
11 years ago
Daniel Cousens
c99a576fbd
Migrates all usage of crypto-js/sha256 to ./crypto
11 years ago
Daniel Cousens
81d9c8e759
Renames util.js to crypto.js
11 years ago
Wei Lu
93fe1b4c78
cosmetic standardization
[closes #56 ]
11 years ago
Daniel Cousens
8f7f50d555
Removes deprecated ECKey.export function
11 years ago
Daniel Cousens
63dd7c7dec
Now uses varIntToNum
11 years ago
Wei Lu
8d2525dba1
allow feePerKb to be set to zero
11 years ago
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