Daniel Cousens
9a7e291d70
Transaction: fix incorrect outIndex type
11 years ago
Daniel Cousens
a77846701f
Fixes network support for TxOut
11 years ago
Daniel Cousens
4012b82bec
Fixes Transaction.addOutput(Address, Number)
11 years ago
Daniel Cousens
695eb64a3a
Clarifies Transaction.addOutput param documentation
11 years ago
Daniel Cousens
baa568697b
Transaction.deserialize no longer mutates input
11 years ago
Daniel Cousens
02013beda9
Renames variables to be more verbose
11 years ago
Daniel Cousens
b860daf70b
Corrects endianness comments
11 years ago
Daniel Cousens
87048d3b4e
Adds performance notes
11 years ago
Daniel Cousens
a8cf2fdd9e
Changes internal serialization to use Buffers instead
11 years ago
Daniel Cousens
10ee5532c3
Serialize now returns a buffer
11 years ago
Daniel Cousens
09c6a787d9
Changes sequence number to an actual Number
11 years ago
Wei Lu
1e6b283f9a
Remove Number.isFinite check on tx input index
11 years ago
Wei Lu
af1f121fd4
upgrade bigi & remove monkey patching
11 years ago
Daniel Cousens
69c0497038
Renames createInputScript to createPubKeyHashScriptSig
11 years ago
Daniel Cousens
a4e68d142d
Adds assertions for types in signScriptSig
11 years ago
Daniel Cousens
8ad8f6f169
Renames p2shsign to signScriptSig
11 years ago
Daniel Cousens
5546cae928
Removes type coercion for a stricter TX API
11 years ago
Daniel Cousens
9af8d95daf
Removes applyMultisigs and adds setScriptSig
11 years ago
Daniel Cousens
ae60e6eb95
Replacse JSBN with bigi
11 years ago
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