Daniel Cousens
4952c5f4e7
HD/Wallet: use network objects, not strings
2014-05-30 19:01:02 +10:00
Kyle Drake
600209b1a6
hdwallet: remove fromHex, add better tests for edge cases
2014-05-25 12:26:29 +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
e27c97a791
ECPubKey/ECKey: separate to two files
2014-05-13 16:51:06 +10:00
Daniel Cousens
276a339d60
crypto: HMACSHA512 into crypto and add tests
2014-05-12 10:18:39 +10:00
Daniel Cousens
063643b4a1
HDWallet: show clearer BIP32 adherence for Master key
2014-05-12 09:56:00 +10:00
Daniel Cousens
3ed7d78e59
HDWallet: adhere to BIP32 for CKD
2014-05-10 09:57:16 +10:00
Daniel Cousens
25514d6ac1
HDWallet: remove HmacBytesToBytes
2014-05-10 09:57:16 +10:00
Daniel Cousens
57b8afbdab
Network: rename Network to Networks
...
This change removes the most common ambiguities.
As the network module is not representative of a class, the lower case
has been used.
2014-05-08 10:59:58 +10:00
Daniel Cousens
02013beda9
Renames variables to be more verbose
2014-05-05 09:11:37 +10:00
Daniel Cousens
4716eb29bf
Removes redundant convert functions
2014-05-04 17:31:47 +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
Wei Lu
af1f121fd4
upgrade bigi & remove monkey patching
2014-05-03 10:04:54 +08:00
Daniel Cousens
ae60e6eb95
Replacse JSBN with bigi
2014-04-22 02:19:30 +10:00
Wei Lu
701af74ade
Merge pull request #142 from dcousens/asserts
...
Adds assertion error messages for HDWallet
2014-04-18 09:59:06 +08:00
Daniel Cousens
de59f6d3ac
Adds assertion error messages for HDWallet
2014-04-18 06:43:14 +10:00
Daniel Cousens
b4f70dcdde
Migrates ECKey to stricter API
2014-04-18 06:36:27 +10:00
Daniel Cousens
505e33c942
Changes netstr to networkString
2014-04-17 19:49:03 +10:00
Daniel Cousens
ddea4b176b
Moves derivation math out into the open
2014-04-17 06:45:57 +10:00
Daniel Cousens
bacf7e7ae2
Removes format dependency
2014-04-17 06:45:29 +10:00
Daniel Cousens
814aa9e552
HDWallet now uses Buffers internally
2014-04-17 06:45:24 +10:00
Daniel Cousens
a4ab75d560
Renames network parameter to netstr
...
This should make the intent clearer.
This commit also catches the `null` case for the seed parameter.
2014-04-17 06:09:45 +10:00
Daniel Cousens
f047afef2d
Updates network.js constant names
2014-04-17 05:50:59 +10:00
Daniel Cousens
aa8d86e6a4
Hash160 now outputs a buffer
2014-04-08 23:44:55 +10:00
Daniel Cousens
c99a576fbd
Migrates all usage of crypto-js/sha256 to ./crypto
2014-04-08 23:07:46 +10:00
Daniel Cousens
81d9c8e759
Renames util.js to crypto.js
2014-04-08 22:00:28 +10:00
Daniel Cousens
6fa0c07763
Changes existing code to use new base58 API
2014-04-04 05:10:12 +11:00
Daniel Cousens
04684b74f1
Some cosmetic fixes
2014-04-01 15:52:40 +11:00
Wei Lu
93fe1b4c78
cosmetic standardization
...
[closes #56 ]
2014-03-31 11:47:47 +08:00
lms
98aeb47c6f
cleaned up address.js
2014-03-27 23:11:04 +01: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
142b847968
HD wallet fromMaterHex allows specifying network
...
[#60 ]
2014-03-14 10:03:56 +08:00
Wei Lu
3d6b66e811
move convert methods from util to convert
2014-03-11 09:52:48 +08:00
Wei Lu
a281a5ab53
migrate crypto-js to 3.1.2
2014-03-09 09:49:24 +08:00
Wei Lu
65a13cbf41
pull out hdwallet network specific values
2014-02-28 18:07:31 +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
Wei Lu
02b3a2b564
HDWallet prod -> mainnet
2014-02-28 17:28:03 +08:00
Wei Lu
eaf84c4283
move address versions into network
...
Also change address type name:
address_types -> addressVersion
p2sh_types -> p2shVersion
prod -> mainnet
2014-02-28 16:58:14 +08:00
Wei Lu
293c864f4f
HD wallet versions: Bitcoin -> prod, BitcoinTest -> testnet
2014-02-28 14:27:31 +08:00
Wei Lu
c352868080
key version check always always relies on the network property
...
[#27 ]
2014-02-28 14:08:34 +08:00
Wei Lu
cc0a042f2f
squashed commits from #27
2014-02-28 12:05:48 +08:00
Wei Lu
09ee406106
Revert "Merge pull request #27 from xnova/master"
...
due to broken tests, moved the changes to branch hd-testnet-support
This reverts commit a4ba59e9ba
, reversing
changes made to 36d3d6ebaa
.
2014-02-28 11:52:19 +08:00
xnova
0310a890ba
didn't mean to remove getPub()
2014-02-27 03:48:20 -05:00
xnova
d447e69279
more ECKey version specification in HDWallet
2014-02-27 03:46:28 -05:00
xnova
ff70f661f7
HDWallet passes along network type when it creates the master private key
2014-02-27 01:18:56 -05:00
Andreas Brekken
5f9e2624f8
Rewrite HD Wallet (BIP0032) with all test vectors
2014-01-16 14:03:09 +07:00