Daniel Cousens
76323a07d0
Transaction: restrict TxIn/TxOut constructor params
To keep this change minimal, both TxIn/TxOut still use the parameter
object for initialization. TxOut accepts only the types it uses
internally, and not hex or byte arrays for scripts.
The clone is unnecessary as a TransactionOut is never mutated after its
creation.
This resulted in TransactionOut.scriptPubKey no longer being needed,
and was removed. To access the scriptPubKey as a byte buffer, a user
can simply use:
TransactionOut.script.toBuffer()
Unfortunately, this leaves TransactionOut in a sorry state of test.
Something that needs to be fixed.
11 years ago
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
4716eb29bf
Removes redundant convert functions
11 years ago
Daniel Cousens
a8cf2fdd9e
Changes internal serialization to use Buffers instead
11 years ago
Daniel Cousens
c8bda6dde6
Adds Buffer extensions
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
Daniel Cousens
ff08c2eec3
Fixes #167 and adds temporary test
11 years ago
Daniel Cousens
e6a9186af3
Removes unnecessary new Buffer
11 years ago
Daniel Cousens
e2e190c766
Variables names made consistent with constructor
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
Kyle Drake
5fd9fe62dc
Fix address prefixes, add dogecoin/litecoin BIP32 versions
11 years ago
Daniel Cousens
b09dd73cbe
Enforces bytesToWordArray only operates on byte arrays
11 years ago
William Cotton
590bb8e1c3
custom changeAddress for wallet.createTx()
11 years ago
William Cotton
a9bc42019a
fixed issues with testnet and createTx
11 years ago
Daniel Cousens
e40377a471
Removes unused functions from convert
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
89cf731ac7
Adds assertion messages
11 years ago
Daniel Cousens
c3e9d568c5
Adds RFC6979 test vectors and fixes ecdsa.sign/detGenK
11 years ago
ethers
1c8f135d9c
assertion message
11 years ago
Wei Lu
102f2bd0c9
make sure createInputScript convert pubKey to buffer before writing out bytes
[fixes #156 ]
11 years ago
Daniel Cousens
df6ea8aea2
Removes toPaddedBuffer and extends toBuffer
11 years ago
Daniel Cousens
d8883e8d32
Adds BI.toPaddedBuffer and toBuffer
11 years ago
Daniel Cousens
bc37e65014
Enforces Array input for deterministicGenerateK
11 years ago
Daniel Cousens
ae60e6eb95
Replacse JSBN with bigi
11 years ago
Daniel Cousens
96ebb65099
Removes ecdsa.getBigRandom
11 years ago
Daniel Cousens
f5ce83beca
Adds working implementation of Script.createP2SHMultisigScriptSig
11 years ago
Daniel Cousens
fb6c76a976
Merges Buffer refactorings from base58-native by Stephen Pair
11 years ago
Daniel Cousens
1b46a10d2a
magicHash now uses Buffers internally
11 years ago
Daniel Cousens
c44af2109e
Uses typeof address === 'string' instead
11 years ago
Daniel Cousens
64dc11486c
Removes resolved TODO
11 years ago
Daniel Cousens
92f1c3e319
Fixes Transaction.addOutput() param handling to match documentation
Now (horrendously) supports other networks
11 years ago
Daniel Cousens
f3a55f63dc
Assert uses strictEqual instead of direct comparison
11 years ago
Daniel Cousens
1d1306b054
Removes Address.fromPubKey and improves test vectors
11 years ago
Daniel Cousens
eae613d244
Adds error messages and better version checking
11 years ago
Daniel Cousens
682ec133bb
Migrates Address to stricter API subset
11 years ago
Daniel Cousens
5adaa7dd54
Prefer Array.prototype.slice over map
11 years ago
Daniel Cousens
de59f6d3ac
Adds assertion error messages for HDWallet
11 years ago