Commit Graph

47 Commits

Author SHA1 Message Date
junderw 4acb7127f7
Remove hex functions and make async default 2019-04-02 18:03:44 +09:00
junderw 6194c3f3ff
Add tests and getDefaultWordlist 2019-03-28 17:21:54 +09:00
d-yokoi 0bc19393b0
prefer simpler module path 2019-03-24 20:49:42 +09:00
d-yokoi 464984682f
fix unit test 2019-03-23 22:06:58 +09:00
junderw ba096d6a80 Add Async method for converting to seed. 2019-03-20 15:50:24 +09:00
Daniel Cousens 2efba14c03 use safe-buffer 2017-05-23 15:05:41 +10:00
Daniel Cousens bb6bd4c492 TypeErrors for entropy length 2017-05-12 12:58:00 +10:00
Daniel Cousens 5bf0b641d4 enforce 128-256 size ENT, multiple of 4 2017-05-12 12:36:12 +10:00
Daniel Cousens 950ce92367 README/tests: isolate README tests to new file 2017-05-12 12:36:12 +10:00
Daniel Cousens 6a8d7c95dc tests: show mnemonic in test desc. 2017-05-12 12:36:12 +10:00
Daniel Cousens ed79ca8c29 tests: add missing Error prefix 2017-05-12 12:27:21 +10:00
Daniel Cousens a2f0a2c049 Merge branch 'master' into checksum-padding-fix2 2017-03-15 18:29:55 +11:00
Kirill Fomichev ba6efa59a0 Add download/verify script 2017-03-15 09:57:19 +03:00
Kirill Fomichev 12ec50c0bc Rename wordlist 2017-03-14 16:10:53 +03:00
Ruben de Vries 2a5f482d7f assert that length of entropy is a multitude of 4.
limit max entropy to 1024 bytes, at which point we've reached the max size of the checksum.
2016-10-06 14:49:38 +02:00
Daniel Cousens 8eab54a87e tests: fix bad mnemonic vector 2016-10-06 01:11:19 +11:00
Daniel Cousens 01df8f030e tests: fix total test plan count 2016-10-06 01:10:38 +11:00
Daniel Cousens 60dd3ee035 switch to tape for testing 2016-10-06 01:02:59 +11:00
Daniel Cousens 5897d39771 package/tests: use proxyquire instead 2016-10-06 00:16:16 +11:00
Daniel Cousens 889f233bdd adhere to standard 2015-10-02 00:30:01 +10:00
dabura667 1279a28af1 Include Japanese wordlist tests 2015-09-28 22:35:33 +09:00
Daniel Cousens f263412660 add test for wordlists 2015-08-17 10:37:02 +10:00
Wei Lu d063b166a8 Merge pull request #19 from hankhero/master
Fix failing example in README and made testcase for samples in readme
2015-04-08 22:50:11 +08:00
Daniel Cousens 1e2eb62cff adds test for randombytes 2015-04-08 12:26:14 +10:00
Daniel Cousens 1fc0b204ac bip39: use randombytes package 2015-03-17 15:53:12 +11:00
Daniel Cousens 1eade4d465 tests: use camelCase always 2015-03-17 15:11:36 +11:00
Henrik Hjelte 2c962e7735 add testcases mimicing the examples in README 2014-12-09 20:23:15 +01:00
Wei Lu 6946ff08ca Test for already normalized password 2014-09-28 19:56:36 +08:00
Wei Lu 3491c3d13e fix string uniform test
[#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
Ian Coleman dca4f3f5d1 UTF8 passwords test 2014-09-28 02:08:00 +10:00
Daniel Cousens 65d54896c5 tests: add verification of use of crypto.randomBytes 2014-09-22 16:52:09 +10: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
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 8408ed79d7 tests: code formatting 2014-06-23 17:24:52 +10:00
Daniel Cousens 3552491505 all: consistent import order 2014-06-23 13:57:37 +10:00
Daniel Cousens 0edcdaaae6 tests: fix wrong file path 2014-06-23 13:57:37 +10:00
Wei Lu e625e4defc add mnemonic validate method 2014-04-05 12:44:16 +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 098ff3e4f7 one vector per test 2014-03-10 10:57:46 +08:00
Wei Lu ffb8e25b4b implement mnemonicToSeed 2014-03-10 10:49:53 +08:00