Daniel Cousens
0e08a9b0ce
Revert "HDNode: remove unnecessary this context"
2016-10-06 21:16:56 +11:00
Daniel Cousens
7a066b68ed
HDNode: remove unnecessary this context
2016-10-06 14:08:27 +11:00
Daniel Cousens
b91cfcf196
package: update to typeforce 1.8.7
2016-10-06 12:34:11 +11:00
Daniel Cousens
4ae06003c4
Merge pull request #638 from bitcoinjs/minpush
...
script: always compile in a minimaldata compliant way
2016-10-05 19:31:52 +11:00
Daniel Cousens
c1570f8056
script: always compile in a minimaldata compliant way
2016-09-29 13:51:17 +10:00
Daniel Cousens
1aab317dad
TransactionBuilder: extract internal signature invalidation functions for individual testing
2016-09-28 16:47:58 +10:00
Daniel Cousens
ccde09fdc3
TransactionBuilder: move fixMultisigOrder back to free function
2016-09-28 15:27:14 +10:00
Daniel Cousens
402e871d40
TransactionBuilder: move sign bulk to prepareInput
2016-09-28 15:23:52 +10:00
Daniel Cousens
a1d3e33c84
address/crypto/script/types: adhere to no-use-before-define
2016-09-28 15:23:52 +10:00
Daniel Cousens
d3ccbb6277
TransactionBuilder: rename index to vout internally
2016-09-28 01:23:37 +10:00
Daniel Cousens
9e5aac8bac
TransactionBuilder: fix duplicate txOut detection
2016-09-28 01:23:37 +10:00
Daniel Cousens
b3fd50ffd6
TransactionBuilder: refactor extractInput/extractFromOutput
2016-09-28 00:50:46 +10:00
Daniel Cousens
6826aa312d
TransactionBuilder: less exits
2016-09-27 22:39:38 +10:00
Daniel Cousens
83b2bb5d6a
TransactionBuilder: avoid extra getPublicKeyBuffer calls
2016-09-27 22:39:38 +10:00
Daniel Cousens
302b4f0796
TransactionBuilder: signatureScript is only defined once
2016-09-27 16:31:09 +10:00
Daniel Cousens
fbcc23fa14
TransactionBuilder: avoid unnecessary cache object
2016-09-27 15:42:14 +10:00
Daniel Cousens
49c6ebe3a0
TransactionBuilder: reword error for correctness
2016-09-27 15:42:11 +10:00
Daniel Cousens
61718cdbaa
txb: remove unused variables
2016-09-26 15:34:43 +10:00
Daniel Cousens
17c6ff62a0
bufferutils: fix pushDataInt output
2016-08-31 16:01:36 +10:00
Daniel Cousens
cc1af7d6a3
Transaction: return a slice, not the original Buffer
2016-08-10 11:44:09 +10:00
Daniel Cousens
6eae0241aa
Transaction: allow parameterizable buffer
2016-08-10 11:44:09 +10:00
Daniel Cousens
9f1d41fc44
script: enforce PUSH_DATA codes for witness outputs
2016-07-12 12:32:29 +10:00
Daniel Cousens
20a026aefe
scripts/tests: add witness* scripts
2016-07-12 12:32:29 +10:00
Daniel Cousens
148e9fc7a8
Merge branch 'master' into codesep
2016-06-30 16:13:08 +10:00
Daniel Cousens
6faeae397f
TxBuilder: add setVersion
2016-06-22 14:57:33 +10:00
Daniel Cousens
697f2da1bc
Transaction: re-work hashForSignature for readability
2016-06-22 14:46:05 +10:00
JP Richardson
ac8ae8f0ed
opcodes: add json extension to fix Webpack JSON loader
2016-06-08 17:00:37 -05:00
Daniel Cousens
79ac51dbbd
Merge branch 'master' into fix/isCoinbaseHash
2016-05-06 14:18:06 +10:00
Daniel Cousens
d58e09a3a7
Block: add checkMerkleRoot
2016-05-05 16:51:33 +10:00
Kirill Fomichev
8ddcf737f9
Update Transaction.isCoinbaseHash
...
- add argument type-checking
- replace Array.every on for-loop
2016-05-03 15:47:15 +03:00
Karel Bilek
f958dd1e86
Adding Transaction.prototype.isCoinbase
2016-05-03 21:46:35 +10:00
Daniel Cousens
ea4ce4e2a6
ECPair: no elseif needed, move default for clarity
2016-04-27 18:04:35 +10:00
Daniel Cousens
00cee340dd
ECPair: don't depend on WIF error message, avoid unnecessary import
2016-04-27 17:05:33 +10:00
Daniel Cousens
e52c0d5b67
ECPair: use toBase58Check
2016-04-27 16:42:25 +10:00
Daniel Cousens
9db67bb3b1
Cleanup for #540 ( #551 )
...
* Txbuilder: early exit as soon as possible
* Txbuilder: prefer function declaration over variable
* TxBuilder: extract extractFromOutputScript
* TxBuilder: extract buildFromInputData
2016-04-08 12:23:32 +10:00
Kirill Fomichev
bc9a95e0ae
Use buffer-reverse instead [].reverse.call
2016-03-10 07:57:30 +03:00
Daniel Cousens
7d2b2dee45
Merge pull request #550 from bitcoinjs/testnet
...
Add network list tests for ECPair/HDNode
2016-02-25 18:20:53 +11:00
Daniel Cousens
285bbd6478
Merge pull request #540 from blocktrail/segwit-prep
...
Refactoring `extractInput` and `__build` to enable nested scripts
2016-02-25 13:59:47 +11:00
Daniel Cousens
aae5db6a59
ECPair/HDNode: missing version from list is Unknown, not Invalid
2016-02-25 13:48:29 +11:00
Daniel Cousens
bdb0dd4a17
HDNode/tests: add testing for invalid network version from networks list
2016-02-25 13:41:35 +11:00
Daniel Cousens
9e32c892ef
ECPair/tests: always use WIF for error throwing
2016-02-25 13:26:05 +11:00
Kirill Fomichev
48866992d4
Update wif to 2.0.1
2016-02-24 13:08:40 +03:00
Ruben de Vries
7aaae4c001
Refactoring extractInput
and __build
to enable nested scripts (P2SH[ P2PKH / multsig ]
).
...
This is preperation for the segwit support which will have `P2SH[ P2WSH[ P2PKH / multsig ] ]` scripts
2016-02-15 14:12:04 +01:00
Karel Bilek
3c56e80fc6
Simplifying path regex
2016-02-14 16:25:55 +01:00
Karel Bilek
6a74eb6993
Renaming Path to Bip32Path, invalid to fixtures
...
Only thing I haven't been able to do is to add "undefined" to fixtures. So I could not properly test
that node.derivePath() properly fails as it should. However, I added "null" there, and "null" and "undefined"
behave in similar way in JavaScript, so that should catch that.
2016-02-14 16:12:16 +01:00
Karel Bilek
d2b43f1dfe
Validating path
...
Again through typeforce
2016-02-13 23:25:30 +01:00
Karel Bilek
182698f53d
Using parseInt instead of + in path parsing
...
+ can cause issues - +"" is 0. parseInt("", 10) is NaN, which is better (since it causes typeforce to throw).
2016-02-13 15:51:42 +01:00
Karel Bilek
7defe6fe4c
Adding path derivation
...
The argument is path of either numbers or strings.
String with "'" at the end signifies hardened path.
2016-02-12 12:37:29 +01:00
Karel Bilek
4a72001335
Typechecking indexes
...
As a consequence, it will not allow accidentally double-hardened indexes.
It also won't allow strings or forgotten parameters.
2016-02-06 17:57:11 +01:00
Karel Bílek
fbcb478560
Adding function to decide if HDNode is public
...
Public === neutered. Private === not neutered
2016-02-05 20:26:23 +01:00