Commit Graph

47 Commits

Author SHA1 Message Date
Daniel Cousens 60dd3ee035 switch to tape for testing 2016-10-06 01:02:59 +11:00
Daniel Cousens 53cd6f0058 remove use of assert 2016-10-06 00:08:49 +11:00
Daniel Cousens c53b825116 standard: use === over == 2016-10-06 00:08:39 +11:00
Daniel Cousens 3d9d09d27a use standard 2016-10-06 00:03:28 +11:00
Ruben de Vries 952d41527e fix issue with 11 bit padding messing up checksum check. 2016-10-05 13:14:02 +02:00
Daniel Cousens b7d3901adc unorm in the same place 2015-10-02 00:35:19 +10:00
Daniel Cousens 889f233bdd adhere to standard 2015-10-02 00:30:01 +10:00
Daniel Cousens 967512dc25 move unorm comments to import 2015-10-02 00:28:57 +10:00
dabura667 6514707eac need to normalize mnemonics too 2015-09-28 23:00:57 +09:00
dabura667 638a78c681 Join Japanese phrases using ideographic spaces
as per BIP39 mentions
2015-09-28 22:52:18 +09:00
dabura667 54cb2370fd Expose Japanese wordlist for use 2015-09-28 22:11:50 +09:00
Daniel Cousens 132ba11c72 expose EN wordlist, resolves #17 2015-08-17 10:29:04 +10:00
Daniel Cousens d99ec8630f index: use utf8 explicitly 2015-03-27 14:42:47 +11:00
Daniel Cousens ff287164d1 index: use createHash/pbkdf2 directly 2015-03-18 19:23:26 +11:00
Daniel Cousens 1fc0b204ac bip39: use randombytes package 2015-03-17 15:53:12 +11:00
Wei Lu 7c7815b960 use unorm for string normalization
[#15]
2014-09-28 15:01:22 +08:00
Ian Coleman 232945faa2 UTF8 passwords work.
The test suite 'browser' does not support string normalization, so the
normalized string has been included in the tests manually.
2014-09-28 02:15:26 +10:00
Daniel Cousens d433b12495 package: upgrade pbkdf2-compat to 2.0.0 2014-09-24 12:07:42 +10:00
Daniel Cousens 98ff2ac316 index: use pbkdf2-compat instead of cryptojs 2014-09-22 18:15:09 +10:00
Wei Lu ec3f4e16b2 Replace secure-random with crypto.randomBytes
https://github.com/dominictarr/crypto-browserify/pull/45
2014-08-17 10:37:38 +08:00
Daniel Cousens 40737046ab index: add mnemonicToEntropy backwards function 2014-08-17 11:20:30 +10:00
Daniel Cousens 8272cb62f6 index: rename mnemonicToSeed to mnemonicToSeedHex 2014-08-17 10:46:04 +10:00
Daniel Cousens 713e5c107d index: avoid BIP39 instantiation 2014-08-17 10:37:14 +10:00
Daniel Cousens fda008ad25 index: rename validate to validateMnemonic 2014-08-17 10:25:25 +10:00
Wei Lu b0b0a5d5b2 remove unnecessary argument 2014-08-13 18:21:43 +08:00
Daniel Cousens 8e6380367d BIP39: allow for custom wordlists 2014-08-13 19:42:21 +10:00
Daniel Cousens 99981a1de6 index: default to randomBuffer 2014-06-25 23:48:51 +10:00
Daniel Cousens e569aeb6d7 index: use secureRandom and add missing tests 2014-06-24 11:43:29 +10:00
Daniel Cousens 4ddf561dd0 index: use consistent slicing method 2014-06-23 16:19:36 +10:00
Daniel Cousens b41eefd395 index: clarify BIP39 compliance 2014-06-23 15:49:54 +10:00
Daniel Cousens 1f6915bd01 index: avoid overwrite, use words variable 2014-06-23 13:57:38 +10:00
Daniel Cousens 3552491505 all: consistent import order 2014-06-23 13:57:37 +10:00
Daniel Cousens 6488b6362e index: use every not reduce 2014-06-23 13:57:37 +10:00
Daniel Cousens f3b4f8cc35 index: move export to bottom 2014-06-23 13:57:37 +10:00
Daniel Cousens dc4e1ffa33 index: consisent code formatting 2014-06-23 13:57:37 +10:00
Wei Lu 2200a6ac16 Refactor validate to use crypto and buffer 2014-05-28 23:11:52 +08:00
Wei Lu 2b9402f302 Crypto -> CryptoJS 2014-05-28 23:10:54 +08:00
Wei Lu 9593d0b287 Refactor entropyToMnemonic to use buffer and crypto 2014-05-28 23:10:11 +08:00
Wei Lu e625e4defc add mnemonic validate method 2014-04-05 12:44:16 +08:00
Wei Lu 893ee6532a make it browserify friendly 2014-03-31 15:11:03 +08:00
Wei Lu d026bbe2ef add generateMnemonic 2014-03-31 14:07:34 +08:00
Wei Lu 14a57f7d21 use absolute path 2014-03-15 12:48:29 +08:00
Wei Lu a744fcccd7 use require-folder + folderify instead of require-json-tree 2014-03-15 10:05:02 +08:00
Wei Lu 6fd8698af2 make bip39 play nice with browserify 2014-03-14 17:05:58 +08:00
Wei Lu 068f6d9912 implement entropyToMnemonic 2014-03-11 16:01:14 +08:00
Wei Lu caa9922dc8 add English wordlist and constructor 2014-03-11 12:38:26 +08:00
Wei Lu ffb8e25b4b implement mnemonicToSeed 2014-03-10 10:49:53 +08:00