Browse Source

add bip39 dep

Kieran Gibb 2 years ago
parent
commit
f6f1bad7c3
No known key found for this signature in database
2 changed files with 99 additions and 1 deletions
  1. 1
    0
      package.json
  2. 98
    1
      yarn.lock

+ 1
- 0
package.json View File

@@ -12,6 +12,7 @@
12 12
   },
13 13
   "dependencies": {
14 14
     "assert": "^2.0.0",
15
+    "bip39": "^3.0.2",
15 16
     "hypercore-crypto": "^1.0.0",
16 17
     "sodium-native": "^2.4.2"
17 18
   },

+ 98
- 1
yarn.lock View File

@@ -90,6 +90,11 @@
90 90
     lodash "^4.17.13"
91 91
     to-fast-properties "^2.0.0"
92 92
 
93
+"@types/node@11.11.6":
94
+  version "11.11.6"
95
+  resolved "https://registry.yarnpkg.com/@types/node/-/node-11.11.6.tgz#df929d1bb2eee5afdda598a41930fe50b43eaa6a"
96
+  integrity sha512-Exw4yUWMBXM3X+8oqzJNRqZSwUAaS4+7NdvHqQuFi/d+synz++xmX3QIf+BFqneW8N31R8Ky+sikfZUXq07ggQ==
97
+
93 98
 ansi-regex@^2.0.0:
94 99
   version "2.1.1"
95 100
   resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df"
@@ -156,6 +161,16 @@ balanced-match@^1.0.0:
156 161
   resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767"
157 162
   integrity sha1-ibTRmasr7kneFk6gK4nORi1xt2c=
158 163
 
164
+bip39@^3.0.2:
165
+  version "3.0.2"
166
+  resolved "https://registry.yarnpkg.com/bip39/-/bip39-3.0.2.tgz#2baf42ff3071fc9ddd5103de92e8f80d9257ee32"
167
+  integrity sha512-J4E1r2N0tUylTKt07ibXvhpT2c5pyAFgvuA5q1H9uDy6dEGpjV8jmymh3MTYJDLCNbIVClSB9FbND49I6N24MQ==
168
+  dependencies:
169
+    "@types/node" "11.11.6"
170
+    create-hash "^1.1.0"
171
+    pbkdf2 "^3.0.9"
172
+    randombytes "^2.0.1"
173
+
159 174
 bitfield-rle@^2.2.1:
160 175
   version "2.2.1"
161 176
   resolved "https://registry.yarnpkg.com/bitfield-rle/-/bitfield-rle-2.2.1.tgz#07c910f7e650c005c46d18ee5ca6e62c4baf8310"
@@ -259,6 +274,14 @@ chalk@^2.0.0:
259 274
     escape-string-regexp "^1.0.5"
260 275
     supports-color "^5.3.0"
261 276
 
277
+cipher-base@^1.0.1, cipher-base@^1.0.3:
278
+  version "1.0.4"
279
+  resolved "https://registry.yarnpkg.com/cipher-base/-/cipher-base-1.0.4.tgz#8760e4ecc272f4c363532f926d874aae2c1397de"
280
+  integrity sha512-Kkht5ye6ZGmwv40uUDZztayT2ThLQGfnj/T71N/XzeZeo3nf8foyW7zGTsPYkEya3m5f3cAypH+qe7YOrM1U2Q==
281
+  dependencies:
282
+    inherits "^2.0.1"
283
+    safe-buffer "^5.0.1"
284
+
262 285
 cliui@^5.0.0:
263 286
   version "5.0.0"
264 287
   resolved "https://registry.yarnpkg.com/cliui/-/cliui-5.0.0.tgz#deefcfdb2e800784aa34f46fa08e06851c7bbbc5"
@@ -328,6 +351,29 @@ cp-file@^6.2.0:
328 351
     pify "^4.0.1"
329 352
     safe-buffer "^5.0.1"
330 353
 
354
+create-hash@^1.1.0, create-hash@^1.1.2:
355
+  version "1.2.0"
356
+  resolved "https://registry.yarnpkg.com/create-hash/-/create-hash-1.2.0.tgz#889078af11a63756bcfb59bd221996be3a9ef196"
357
+  integrity sha512-z00bCGNHDG8mHAkP7CtT1qVu+bFQUPjYq/4Iv3C3kWjTFV10zIjfSoeqXo9Asws8gwSHDGj/hl2u4OGIjapeCg==
358
+  dependencies:
359
+    cipher-base "^1.0.1"
360
+    inherits "^2.0.1"
361
+    md5.js "^1.3.4"
362
+    ripemd160 "^2.0.1"
363
+    sha.js "^2.4.0"
364
+
365
+create-hmac@^1.1.4:
366
+  version "1.1.7"
367
+  resolved "https://registry.yarnpkg.com/create-hmac/-/create-hmac-1.1.7.tgz#69170c78b3ab957147b2b8b04572e47ead2243ff"
368
+  integrity sha512-MJG9liiZ+ogc4TzUwuvbER1JRdgvUFSB5+VR/g5h82fGaIRWMWddtKBHi7/sVhfjQZ6SehlyhvQYrcYkaUIpLg==
369
+  dependencies:
370
+    cipher-base "^1.0.3"
371
+    create-hash "^1.1.0"
372
+    inherits "^2.0.1"
373
+    ripemd160 "^2.0.0"
374
+    safe-buffer "^5.0.1"
375
+    sha.js "^2.4.8"
376
+
331 377
 cross-spawn@^4:
332 378
   version "4.0.2"
333 379
   resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-4.0.2.tgz#7b9247621c23adfdd3856004a823cbe397424d41"
@@ -574,6 +620,14 @@ has@^1.0.1, has@^1.0.3, has@~1.0.3:
574 620
   dependencies:
575 621
     function-bind "^1.1.1"
576 622
 
623
+hash-base@^3.0.0:
624
+  version "3.0.4"
625
+  resolved "https://registry.yarnpkg.com/hash-base/-/hash-base-3.0.4.tgz#5fc8686847ecd73499403319a6b0a3f3f6ae4918"
626
+  integrity sha1-X8hoaEfs1zSZQDMZprCj8/auSRg=
627
+  dependencies:
628
+    inherits "^2.0.1"
629
+    safe-buffer "^5.0.1"
630
+
577 631
 hasha@^3.0.0:
578 632
   version "3.0.0"
579 633
   resolved "https://registry.yarnpkg.com/hasha/-/hasha-3.0.0.tgz#52a32fab8569d41ca69a61ff1a214f8eb7c8bd39"
@@ -871,6 +925,15 @@ make-dir@^2.0.0, make-dir@^2.1.0:
871 925
     pify "^4.0.1"
872 926
     semver "^5.6.0"
873 927
 
928
+md5.js@^1.3.4:
929
+  version "1.3.5"
930
+  resolved "https://registry.yarnpkg.com/md5.js/-/md5.js-1.3.5.tgz#b5d07b8e3216e3e27cd728d72f70d1e6a342005f"
931
+  integrity sha512-xitP+WxNPcTTOgnTJcrhM0xvdPepipPSf3I8EIpGKeFLjt3PlJLIDG3u8EX53ZIubkb+5U2+3rELYpEhHhzdkg==
932
+  dependencies:
933
+    hash-base "^3.0.0"
934
+    inherits "^2.0.1"
935
+    safe-buffer "^5.1.2"
936
+
874 937
 memory-pager@^1.0.2:
875 938
   version "1.5.0"
876 939
   resolved "https://registry.yarnpkg.com/memory-pager/-/memory-pager-1.5.0.tgz#d8751655d22d384682741c972f2c3d6dfa3e66b5"
@@ -1120,6 +1183,17 @@ path-type@^3.0.0:
1120 1183
   dependencies:
1121 1184
     pify "^3.0.0"
1122 1185
 
1186
+pbkdf2@^3.0.9:
1187
+  version "3.0.17"
1188
+  resolved "https://registry.yarnpkg.com/pbkdf2/-/pbkdf2-3.0.17.tgz#976c206530617b14ebb32114239f7b09336e93a6"
1189
+  integrity sha512-U/il5MsrZp7mGg3mSQfn742na2T+1/vHDCG5/iTI3X9MKUuYUZVLQhyRsg06mCgDBTd57TxzgZt7P+fYfjRLtA==
1190
+  dependencies:
1191
+    create-hash "^1.1.2"
1192
+    create-hmac "^1.1.4"
1193
+    ripemd160 "^2.0.1"
1194
+    safe-buffer "^5.0.1"
1195
+    sha.js "^2.4.8"
1196
+
1123 1197
 pify@^3.0.0:
1124 1198
   version "3.0.0"
1125 1199
   resolved "https://registry.yarnpkg.com/pify/-/pify-3.0.0.tgz#e5a4acd2c101fdf3d9a4d07f0dbc4db49dd28176"
@@ -1208,6 +1282,13 @@ random-access-storage@^1.1.1:
1208 1282
   dependencies:
1209 1283
     inherits "^2.0.3"
1210 1284
 
1285
+randombytes@^2.0.1:
1286
+  version "2.1.0"
1287
+  resolved "https://registry.yarnpkg.com/randombytes/-/randombytes-2.1.0.tgz#df6f84372f0270dc65cdf6291349ab7a473d4f2a"
1288
+  integrity sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==
1289
+  dependencies:
1290
+    safe-buffer "^5.1.0"
1291
+
1211 1292
 re-emitter@1.1.3:
1212 1293
   version "1.1.3"
1213 1294
   resolved "https://registry.yarnpkg.com/re-emitter/-/re-emitter-1.1.3.tgz#fa9e319ffdeeeb35b27296ef0f3d374dac2f52a7"
@@ -1318,7 +1399,15 @@ rimraf@^2.6.3:
1318 1399
   dependencies:
1319 1400
     glob "^7.1.3"
1320 1401
 
1321
-safe-buffer@^5.0.1, safe-buffer@^5.1.2:
1402
+ripemd160@^2.0.0, ripemd160@^2.0.1:
1403
+  version "2.0.2"
1404
+  resolved "https://registry.yarnpkg.com/ripemd160/-/ripemd160-2.0.2.tgz#a1c1a6f624751577ba5d07914cbc92850585890c"
1405
+  integrity sha512-ii4iagi25WusVoiC4B4lq7pbXfAp3D9v5CwfkY33vffw2+pkDjY1D8GaN7spsxvCSx8dkPqOZCEZyfxcmJG2IA==
1406
+  dependencies:
1407
+    hash-base "^3.0.0"
1408
+    inherits "^2.0.1"
1409
+
1410
+safe-buffer@^5.0.1, safe-buffer@^5.1.0, safe-buffer@^5.1.2:
1322 1411
   version "5.2.0"
1323 1412
   resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.0.tgz#b74daec49b1148f88c64b68d49b1e815c1f2f519"
1324 1413
   integrity sha512-fZEwUGbVl7kouZs1jCdMLdt95hdIv0ZeHg6L7qPeciMZhZ+/gdesW4wgTARkrFWEpspjEATAzUGPG8N2jJiwbg==
@@ -1343,6 +1432,14 @@ set-blocking@^2.0.0:
1343 1432
   resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7"
1344 1433
   integrity sha1-BF+XgtARrppoA93TgrJDkrPYkPc=
1345 1434
 
1435
+sha.js@^2.4.0, sha.js@^2.4.8:
1436
+  version "2.4.11"
1437
+  resolved "https://registry.yarnpkg.com/sha.js/-/sha.js-2.4.11.tgz#37a5cf0b81ecbc6943de109ba2960d1b26584ae7"
1438
+  integrity sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ==
1439
+  dependencies:
1440
+    inherits "^2.0.1"
1441
+    safe-buffer "^5.0.1"
1442
+
1346 1443
 signal-exit@^3.0.0, signal-exit@^3.0.2:
1347 1444
   version "3.0.2"
1348 1445
   resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d"