Daniel Cousens
31923197ea
tests: add more complex integration transaction
2016-04-22 17:08:45 +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
Daniel Cousens
93f9185628
Merge pull request #564 from bitcoinjs/dcousens-patch-2
...
README: clarify uglify (resolves #555 )
2016-04-08 11:51:06 +10:00
Daniel Cousens
74f2e01978
README: clarify uglify ( resolves #555 )
2016-04-08 11:45:28 +10:00
Daniel Cousens
0cedacddc6
Merge pull request #557 from fanatid/feature/buffer-reverse
...
Use equal and reverse for buffer from bufferutils
2016-03-10 16:56:44 +11:00
Kirill Fomichev
bc9a95e0ae
Use buffer-reverse instead [].reverse.call
2016-03-10 07:57:30 +03:00
Daniel Cousens
f999ff6382
Merge pull request #552 from bitcoinjs/popular
...
README: `1.0.0` is now more popular
2016-02-27 23:19:01 +11:00
Daniel Cousens
7546b2bb52
README: 1.0.0
is now more popular
2016-02-25 18:23:00 +11: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
Daniel Cousens
54c071c131
Merge pull request #549 from fanatid/feature/wif-2.0.1
...
Update wif to 2.0.1
2016-02-25 13:07:50 +11:00
Kirill Fomichev
48866992d4
Update wif to 2.0.1
2016-02-24 13:08:40 +03:00
Daniel Cousens
2f2e50092c
Merge pull request #542 from fanatid/feature/package.json-files
...
whitelist of files for npm package
2016-02-16 07:35:29 +11:00
Daniel Cousens
46969bbd3e
Merge pull request #544 from fanatid/feature/package.json-license
...
Add license field to package.json
2016-02-16 07:25:53 +11:00
Kirill Fomichev
437cd52534
Add license field to package.json
2016-02-15 23:11:13 +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
Kirill Fomichev
bed6ca0bb4
Travis: node versions as strings
2016-02-15 11:35:55 +03:00
Kirill Fomichev
567ac74384
Use files in package.json instead .npmignore
2016-02-15 09:23:40 +03:00
Daniel Cousens
17041553df
Merge pull request #538 from runn1ng/patch-2
...
Adding path derivation
2016-02-15 10:16:26 +11: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
755eac5bbd
Doubling down on the path testing
...
Maybe overdoing it a bit :)
2016-02-12 12:37:30 +01:00
Karel Bilek
7a61526705
Testing path derivation
...
I am taking description field for the path.
2016-02-12 12:37:29 +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
Daniel Cousens
b3b239739b
Merge pull request #539 from runn1ng/patch-3
...
Adding some checks on deriving indexes
2016-02-07 13:10:48 +11: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
Daniel Cousens
75bd8331cd
Merge pull request #536 from runn1ng/patch-1
...
Adding function to decide if HDNode is private
2016-02-06 13:26:30 +11:00
Karel Bilek
bfd294c31e
Adding tests for isNeutered
2016-02-05 20:29:52 +01:00
Karel Bilek
3df2976e2c
Using private key for testing neuterization
...
To test removing private information, it's probably better to start with them :)
2016-02-05 20:26:23 +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
Daniel Cousens
61d08fab94
Merge pull request #535 from bitcoinjs/220
...
v2.2.0
2016-02-06 03:21:56 +11:00
Daniel Cousens
1679becb35
2.2.0
2016-02-05 15:35:28 +11:00
Daniel Cousens
77fed42a26
CHANGELOG: add PR numbers
2016-02-05 15:35:28 +11:00
Daniel Cousens
d3b59fa7a1
CHANGELOG: add 2.2.0 notes
2016-02-05 15:35:28 +11:00
Daniel Cousens
dc7d4fcffc
Merge pull request #537 from bitcoinjs/dcousens-patch-2
...
README: add EI8HT wallet link
2016-02-05 15:32:27 +11:00
Daniel Cousens
1ec9e1ae88
README: add EI8HT wallet link
2016-02-05 14:44:43 +11:00
Daniel Cousens
64e45e694f
Merge pull request #534 from bitcoinjs/tforce
...
typeforce for hash160/256 throws hard error
2016-02-05 14:30:03 +11:00
Daniel Cousens
1771067dfc
tests: fix standard error, reword descriptions
2016-02-05 14:16:56 +11:00
Ruben de Vries
7c7537fc57
use typeforce >= 1.6.2 which allows us to use typeforce.TfTypeError
with a custom error message.
2016-02-02 14:04:37 +01:00
Ruben de Vries
ce21c99b43
add failing test case for hash160/256 typeforce check
2016-02-02 13:31:54 +01:00
Daniel Cousens
7ba58078b1
Merge pull request #529 from blocktrail/fix-integration-test
...
Fixes integration tests
2016-01-29 00:10:53 +11:00
Ruben de Vries
0e1424c2cb
fixed issues with integration tests that use the faucet
2016-01-28 11:27:34 +01:00
JP Richardson
7937835415
Merge pull request #531 from bitcoinjs/fix-test
...
fixed another test where TX was signed before locktime was set
2016-01-27 23:39:04 -06:00
Ruben de Vries
b601f50c70
fixed another test where TX was signed before locktime was set
2016-01-28 16:11:49 +11:00
JP Richardson
682ba7e549
Merge pull request #530 from bitcoinjs/lesscomp
...
address: fix compiled assumption for fromOutputScript
2016-01-27 22:50:05 -06:00