Daniel Cousens
80da2ed2d5
HDWallet: add fromBase58 exception checks
2014-05-30 19:01:03 +10:00
Daniel Cousens
4952c5f4e7
HD/Wallet: use network objects, not strings
2014-05-30 19:01:02 +10:00
Daniel Cousens
8b3634c866
HDWallet: adds missing exception regex
2014-05-29 16:06:18 +10:00
Wei Lu
c962d0c9b7
Merge pull request #194 from coinpunk/hdcleanups
...
Remove fromHex, tests for edge case fromBuffer errors
2014-05-25 03:09:55 +00:00
Kyle Drake
600209b1a6
hdwallet: remove fromHex, add better tests for edge cases
2014-05-25 12:26:29 +10:00
Daniel Cousens
d2e921fce6
HDWallet: move test vectors to fixtures
2014-05-25 11:48:34 +10:00
Daniel Cousens
10fe4474d1
ECKey: remove *Buffer/*Hex functions
...
An ECKey is a composition of a private key (D), a public key (Q) and its
compression flag.
These functions gave the impression of serialization of this
composition, when really they only serialized `D`.
They have therefore been removed in favour of always using a sane
serialization format (WIF) that matches the needed behaviour.
If a user needs the previous functionality, simply use `privKey.D.*`
instead of `privKey.*`, as BigInteger supports `*Buffer/*Hex` functions
as expected.
2014-05-18 17:50:10 +10:00
Daniel Cousens
6c0eebe94b
tests: use filepaths directly
...
After a long IRC discussion, it was decided that the use of direct
filepaths instead of the module is a more pure form of testing ,
although it may provide less overall coverage than the mixed integration
style imports used previously.
This will need to be remedied by further integration testing in
/test/integration.
2014-05-13 18:05:56 +10:00
Daniel Cousens
633b8f28d2
Fixes incorrect PubKey hex constant
2014-05-04 15:15:22 +10:00
Daniel Cousens
02691098de
Stretches test for derive m/0 from xpub
2014-05-04 12:14:33 +10:00
Daniel Cousens
ff08c2eec3
Fixes #167 and adds temporary test
2014-05-04 12:07:05 +10:00
Daniel Cousens
77747241d4
Fixes exception typo
2014-04-30 05:10:02 +10:00
Daniel Cousens
b09dd73cbe
Enforces bytesToWordArray only operates on byte arrays
2014-04-30 05:07:41 +10:00
Daniel Cousens
b4f70dcdde
Migrates ECKey to stricter API
2014-04-18 06:36:27 +10:00
Daniel Cousens
814aa9e552
HDWallet now uses Buffers internally
2014-04-17 06:45:24 +10:00
Daniel Cousens
f047afef2d
Updates network.js constant names
2014-04-17 05:50:59 +10:00
Wei Lu
93fe1b4c78
cosmetic standardization
...
[closes #56 ]
2014-03-31 11:47:47 +08:00
Wei Lu
9358a40500
tabs -> spaces
2014-03-24 03:19:39 +08:00
Daniel Cousens
48883dd069
Changes expected key output to hex
2014-03-24 05:09:03 +11:00
Daniel Cousens
2e2932c410
Renames variables to better reflect their values
2014-03-23 18:42:52 +11:00
Daniel Cousens
e9fdfecfea
Changes default EC*Key.toString behaviour to Hex
2014-03-23 18:42:52 +11:00
Daniel Cousens
9bab1e96ad
Fixes network tests for proper address types
2014-03-22 19:12:26 +11:00
Daniel Cousens
b40374e332
Changes to new version-less ECKey API
2014-03-22 19:12:26 +11:00
Wei Lu
44012b47b5
change hd wallet constructor to take bytes
...
original constructor -> fromSeedString, fromMasterHex -> fromSeedHex
[#60 ]
2014-03-14 10:03:56 +08:00
Wei Lu
2e97828379
throws exception if specified network is unknown
...
also move network type tests to hdwallet
2014-02-28 17:59:01 +08:00
Andreas Brekken
5f9e2624f8
Rewrite HD Wallet (BIP0032) with all test vectors
2014-01-16 14:03:09 +07:00