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.
2014-05-08 10:59:58 +10:00
Daniel Cousens
9a7e291d70
Transaction: fix incorrect outIndex type
2014-05-08 08:52:07 +10:00
Daniel Cousens
a77846701f
Fixes network support for TxOut
2014-05-06 15:40:40 +10:00
Daniel Cousens
4012b82bec
Fixes Transaction.addOutput(Address, Number)
2014-05-06 15:40:40 +10:00
Daniel Cousens
695eb64a3a
Clarifies Transaction.addOutput param documentation
2014-05-06 15:40:40 +10:00
Daniel Cousens
d65a3c36e2
Merge pull request #159 from williamcotton/master
...
fixed issues with testnet and createTx
2014-05-06 08:04:02 +10:00
Daniel Cousens
baa568697b
Transaction.deserialize no longer mutates input
2014-05-05 09:11:37 +10:00
Daniel Cousens
02013beda9
Renames variables to be more verbose
2014-05-05 09:11:37 +10:00
Daniel Cousens
b860daf70b
Corrects endianness comments
2014-05-04 17:31:47 +10:00
Daniel Cousens
87048d3b4e
Adds performance notes
2014-05-04 17:31:47 +10:00
Daniel Cousens
4716eb29bf
Removes redundant convert functions
2014-05-04 17:31:47 +10:00
Daniel Cousens
a8cf2fdd9e
Changes internal serialization to use Buffers instead
2014-05-04 17:31:22 +10:00
Daniel Cousens
c8bda6dde6
Adds Buffer extensions
2014-05-04 17:30:59 +10:00
Daniel Cousens
10ee5532c3
Serialize now returns a buffer
2014-05-04 15:37:25 +10:00
Daniel Cousens
09c6a787d9
Changes sequence number to an actual Number
2014-05-04 15:37:25 +10:00
Wei Lu
a830e2cded
Merge pull request #168 from dcousens/167fix
...
Fixes #167
2014-05-04 10:11:19 +08:00
Daniel Cousens
ff08c2eec3
Fixes #167 and adds temporary test
2014-05-04 12:07:05 +10:00
Daniel Cousens
e6a9186af3
Removes unnecessary new Buffer
2014-05-04 11:58:06 +10:00
Daniel Cousens
e2e190c766
Variables names made consistent with constructor
2014-05-04 11:57:49 +10:00
Daniel Cousens
bb80eda218
Merge pull request #165 from bitcoinjs/bigi-monkey-patching-no-more
...
Upgrade bigi & remove monkey patching
2014-05-04 07:39:19 +10:00
Wei Lu
1e6b283f9a
Remove Number.isFinite check on tx input index
2014-05-03 10:19:38 +08:00
Wei Lu
af1f121fd4
upgrade bigi & remove monkey patching
2014-05-03 10:04:54 +08:00
Wei Lu
39516d5532
Merge pull request #163 from dcousens/wordass
...
Enforces convert.wordsToBytes to only allow for byte input
2014-04-30 08:49:05 +08:00
Kyle Drake
5fd9fe62dc
Fix address prefixes, add dogecoin/litecoin BIP32 versions
2014-04-29 15:07:15 -07:00
Daniel Cousens
b09dd73cbe
Enforces bytesToWordArray only operates on byte arrays
2014-04-30 05:07:41 +10:00
Wei Lu
45c1c8350e
Merge pull request #154 from dcousens/convrem
...
Remove dead code from Convert module
2014-04-26 12:27:08 +08:00
Wei Lu
6833acaf3a
Merge pull request #152 from dcousens/p2shsign
...
Preliminary test for P2shsign
2014-04-26 12:26:50 +08:00
William Cotton
590bb8e1c3
custom changeAddress for wallet.createTx()
2014-04-25 12:49:51 -07:00
William Cotton
a9bc42019a
fixed issues with testnet and createTx
2014-04-25 12:39:30 -07:00
Daniel Cousens
e40377a471
Removes unused functions from convert
2014-04-26 05:11:45 +10:00
Daniel Cousens
69c0497038
Renames createInputScript to createPubKeyHashScriptSig
2014-04-26 04:04:19 +10:00
Daniel Cousens
a4e68d142d
Adds assertions for types in signScriptSig
2014-04-26 04:04:16 +10:00
Daniel Cousens
8ad8f6f169
Renames p2shsign to signScriptSig
2014-04-26 03:51:13 +10:00
Daniel Cousens
5546cae928
Removes type coercion for a stricter TX API
2014-04-26 03:51:13 +10:00
Daniel Cousens
9af8d95daf
Removes applyMultisigs and adds setScriptSig
2014-04-26 03:51:13 +10:00
Daniel Cousens
89cf731ac7
Adds assertion messages
2014-04-26 02:37:48 +10:00
Daniel Cousens
c3e9d568c5
Adds RFC6979 test vectors and fixes ecdsa.sign/detGenK
2014-04-26 02:17:28 +10:00
ethers
1c8f135d9c
assertion message
2014-04-24 23:29:12 -07:00
Wei Lu
102f2bd0c9
make sure createInputScript convert pubKey to buffer before writing out bytes
...
[fixes #156 ]
2014-04-25 10:01:50 +08:00
Daniel Cousens
df6ea8aea2
Removes toPaddedBuffer and extends toBuffer
2014-04-25 00:18:13 +10:00
Daniel Cousens
d8883e8d32
Adds BI.toPaddedBuffer and toBuffer
2014-04-24 07:22:23 +10:00
Daniel Cousens
bc37e65014
Enforces Array input for deterministicGenerateK
2014-04-23 06:28:00 +10:00
Kyle Drake
1b66976d92
Merge pull request #146 from dcousens/magictests
...
MagicHash Tests
2014-04-21 09:39:50 -07:00
Kyle Drake
21aa517cd2
Merge pull request #143 from dcousens/multisigfix
...
Multi-sig ScriptSig Support
2014-04-21 09:39:03 -07:00
Daniel Cousens
ae60e6eb95
Replacse JSBN with bigi
2014-04-22 02:19:30 +10:00
Daniel Cousens
96ebb65099
Removes ecdsa.getBigRandom
2014-04-22 02:04:56 +10:00
Daniel Cousens
f5ce83beca
Adds working implementation of Script.createP2SHMultisigScriptSig
2014-04-22 00:28:13 +10:00
Daniel Cousens
fb6c76a976
Merges Buffer refactorings from base58-native by Stephen Pair
2014-04-22 00:24:20 +10:00
Daniel Cousens
1b46a10d2a
magicHash now uses Buffers internally
2014-04-22 00:23:12 +10:00
Daniel Cousens
c44af2109e
Uses typeof address === 'string' instead
2014-04-20 04:54:50 +10:00