@prosopo/account 2.7.43 → 2.8.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/.turbo/turbo-build$colon$cjs.log +35 -9
  2. package/.turbo/turbo-build$colon$tsc.log +76 -0
  3. package/.turbo/turbo-build.log +40 -10
  4. package/CHANGELOG.md +385 -0
  5. package/dist/cjs/extension/ExtensionWeb2.cjs +14 -6
  6. package/dist/cjs/workers/CryptoWorkerManager.cjs +156 -0
  7. package/dist/cjs/workers/cryptoWorker.cjs +27 -0
  8. package/dist/extension/Extension.d.ts +5 -0
  9. package/dist/extension/Extension.d.ts.map +1 -0
  10. package/dist/extension/Extension.js.map +1 -0
  11. package/dist/extension/ExtensionWeb2.d.ts +9 -0
  12. package/dist/extension/ExtensionWeb2.d.ts.map +1 -0
  13. package/dist/extension/ExtensionWeb2.js +15 -7
  14. package/dist/extension/ExtensionWeb2.js.map +1 -0
  15. package/dist/extension/ExtensionWeb3.d.ts +7 -0
  16. package/dist/extension/ExtensionWeb3.d.ts.map +1 -0
  17. package/dist/extension/ExtensionWeb3.js.map +1 -0
  18. package/dist/index.d.ts +4 -0
  19. package/dist/index.d.ts.map +1 -0
  20. package/dist/index.js.map +1 -0
  21. package/dist/workers/CryptoWorkerManager.d.ts +13 -0
  22. package/dist/workers/CryptoWorkerManager.d.ts.map +1 -0
  23. package/dist/workers/CryptoWorkerManager.js +156 -0
  24. package/dist/workers/CryptoWorkerManager.js.map +1 -0
  25. package/dist/workers/cryptoWorker.d.ts +2 -0
  26. package/dist/workers/cryptoWorker.d.ts.map +1 -0
  27. package/dist/workers/cryptoWorker.js +28 -0
  28. package/dist/workers/cryptoWorker.js.map +1 -0
  29. package/dist/workers/index.d.ts +2 -0
  30. package/dist/workers/index.d.ts.map +1 -0
  31. package/dist/workers/index.js +2 -0
  32. package/dist/workers/index.js.map +1 -0
  33. package/package.json +13 -11
  34. package/src/custom.d.ts +44 -0
  35. package/src/extension/Extension.ts +29 -0
  36. package/src/extension/ExtensionWeb2.ts +121 -0
  37. package/src/extension/ExtensionWeb3.ts +60 -0
  38. package/src/index.ts +16 -0
  39. package/src/workers/CryptoWorkerManager.ts +225 -0
  40. package/src/workers/cryptoWorker.ts +79 -0
  41. package/src/workers/index.ts +18 -0
  42. package/tsconfig.cjs.json +37 -0
  43. package/tsconfig.json +40 -0
  44. package/tsconfig.tsbuildinfo +1 -0
  45. package/tsconfig.types.json +9 -0
  46. package/vite.cjs.config.ts +1 -1
  47. package/vite.esm.config.ts +1 -1
@@ -1,5 +1,5 @@
1
1
 
2
- > @prosopo/account@2.7.43 build:cjs
2
+ > @prosopo/account@2.8.35 build:cjs
3
3
  > NODE_ENV=${NODE_ENV:-development}; vite build --config vite.cjs.config.ts --mode $NODE_ENV
4
4
 
5
5
  ViteCommonJSConfig: .
@@ -7,10 +7,12 @@ ViteCommonJSConfig: .
7
7
  tsConfigPaths: [
8
8
  '/home/runner/work/captcha/captcha/packages/common/tsconfig.json',
9
9
  '/home/runner/work/captcha/captcha/packages/locale/tsconfig.json',
10
- '/home/runner/work/captcha/captcha/packages/types/tsconfig.json',
10
+ '/home/runner/work/captcha/captcha/packages/logger/tsconfig.json',
11
11
  '/home/runner/work/captcha/captcha/packages/util/tsconfig.json',
12
+ '/home/runner/work/captcha/captcha/packages/types/tsconfig.json',
12
13
  '/home/runner/work/captcha/captcha/packages/util-crypto/tsconfig.json',
13
14
  '/home/runner/work/captcha/captcha/packages/fingerprint/tsconfig.json',
15
+ '/home/runner/work/captcha/captcha/packages/fingerprintjs/tsconfig.json',
14
16
  '/home/runner/work/captcha/captcha/packages/keyring/tsconfig.json'
15
17
  ]
16
18
  }
@@ -18,23 +20,47 @@ ViteCommonJSConfig: .
18
20
  externals: [
19
21
  '@prosopo/common',
20
22
  '@prosopo/locale',
21
- '@prosopo/types',
23
+ '@prosopo/logger',
22
24
  '@prosopo/util',
25
+ '@prosopo/types',
23
26
  '@prosopo/util-crypto',
24
27
  '@prosopo/fingerprint',
28
+ '@prosopo/fingerprintjs',
25
29
  '@prosopo/keyring'
26
30
  ]
27
31
  }
28
32
  vite v6.4.1 building SSR bundle for production...
29
33
  Bundle build started
30
34
  transforming...
35
+ ../../node_modules/@polkadot/x-randomvalues/node_modules/@polkadot/x-global/index.js (9:23): A comment
36
+
37
+ "/*#__PURE__*/"
38
+
39
+ in "../../node_modules/@polkadot/x-randomvalues/node_modules/@polkadot/x-global/index.js" contains an annotation that Rollup cannot interpret due to the position of the comment. The comment will be removed to avoid issues.
40
+ ../../node_modules/@polkadot/x-textdecoder/node_modules/@polkadot/x-global/index.js (9:23): A comment
41
+
42
+ "/*#__PURE__*/"
43
+
44
+ in "../../node_modules/@polkadot/x-textdecoder/node_modules/@polkadot/x-global/index.js" contains an annotation that Rollup cannot interpret due to the position of the comment. The comment will be removed to avoid issues.
45
+ ../../node_modules/@polkadot/util/node_modules/@polkadot/x-global/index.js (9:23): A comment
46
+
47
+ "/*#__PURE__*/"
48
+
49
+ in "../../node_modules/@polkadot/util/node_modules/@polkadot/x-global/index.js" contains an annotation that Rollup cannot interpret due to the position of the comment. The comment will be removed to avoid issues.
50
+ ../../node_modules/@polkadot/x-textencoder/node_modules/@polkadot/x-global/index.js (9:23): A comment
51
+
52
+ "/*#__PURE__*/"
53
+
54
+ in "../../node_modules/@polkadot/x-textencoder/node_modules/@polkadot/x-global/index.js" contains an annotation that Rollup cannot interpret due to the position of the comment. The comment will be removed to avoid issues.
31
55
  Build end
32
- ✓ 4 modules transformed.
56
+ ✓ 6 modules transformed.
33
57
  Entry module "src/extension/ExtensionWeb2.ts" is using named and default exports together. Consumers of your bundle will have to use `..default` to access the default export, which may not be what you want. Use `output.exports: "named"` to disable this warning.
34
58
  Entry module "src/extension/ExtensionWeb3.ts" is using named and default exports together. Consumers of your bundle will have to use `..default` to access the default export, which may not be what you want. Use `output.exports: "named"` to disable this warning.
35
59
  rendering chunks...
36
- dist/cjs/extension/Extension.cjs 0.14 kB
37
- dist/cjs/index.cjs 0.42 kB
38
- dist/cjs/extension/ExtensionWeb3.cjs 1.31 kB
39
- dist/cjs/extension/ExtensionWeb2.cjs 3.50 kB
40
- ✓ built in 231ms
60
+ dist/cjs/extension/Extension.cjs  0.14 kB
61
+ dist/cjs/index.cjs  0.42 kB
62
+ dist/cjs/extension/ExtensionWeb3.cjs  1.31 kB
63
+ dist/cjs/extension/ExtensionWeb2.cjs  3.78 kB
64
+ dist/cjs/workers/CryptoWorkerManager.cjs  4.77 kB
65
+ dist/cjs/workers/cryptoWorker.cjs 19.63 kB
66
+ ✓ built in 1.37s
@@ -0,0 +1,76 @@
1
+
2
+ > @prosopo/account@2.8.35 build:tsc
3
+ > npm run typecheck && npm run build
4
+
5
+
6
+ > @prosopo/account@2.8.35 typecheck
7
+ > tsc --project tsconfig.types.json
8
+
9
+
10
+ > @prosopo/account@2.8.35 build
11
+ > npm run build:cross-env -- --mode ${NODE_ENV:-development}
12
+
13
+
14
+ > @prosopo/account@2.8.35 build:cross-env
15
+ > vite build --config vite.esm.config.ts --mode production
16
+
17
+ ViteEsmConfig: .
18
+ {
19
+ tsConfigPaths: [
20
+ '/home/runner/work/captcha/captcha/packages/common/tsconfig.json',
21
+ '/home/runner/work/captcha/captcha/packages/locale/tsconfig.json',
22
+ '/home/runner/work/captcha/captcha/packages/logger/tsconfig.json',
23
+ '/home/runner/work/captcha/captcha/packages/util/tsconfig.json',
24
+ '/home/runner/work/captcha/captcha/packages/types/tsconfig.json',
25
+ '/home/runner/work/captcha/captcha/packages/util-crypto/tsconfig.json',
26
+ '/home/runner/work/captcha/captcha/packages/fingerprint/tsconfig.json',
27
+ '/home/runner/work/captcha/captcha/packages/fingerprintjs/tsconfig.json',
28
+ '/home/runner/work/captcha/captcha/packages/keyring/tsconfig.json'
29
+ ]
30
+ }
31
+ {
32
+ externals: [
33
+ '@prosopo/common',
34
+ '@prosopo/locale',
35
+ '@prosopo/logger',
36
+ '@prosopo/util',
37
+ '@prosopo/types',
38
+ '@prosopo/util-crypto',
39
+ '@prosopo/fingerprint',
40
+ '@prosopo/fingerprintjs',
41
+ '@prosopo/keyring'
42
+ ]
43
+ }
44
+ vite v6.4.1 building SSR bundle for production...
45
+ Bundle build started
46
+ transforming...
47
+ ../../node_modules/@polkadot/x-randomvalues/node_modules/@polkadot/x-global/index.js (9:23): A comment
48
+
49
+ "/*#__PURE__*/"
50
+
51
+ in "../../node_modules/@polkadot/x-randomvalues/node_modules/@polkadot/x-global/index.js" contains an annotation that Rollup cannot interpret due to the position of the comment. The comment will be removed to avoid issues.
52
+ ../../node_modules/@polkadot/util/node_modules/@polkadot/x-global/index.js (9:23): A comment
53
+
54
+ "/*#__PURE__*/"
55
+
56
+ in "../../node_modules/@polkadot/util/node_modules/@polkadot/x-global/index.js" contains an annotation that Rollup cannot interpret due to the position of the comment. The comment will be removed to avoid issues.
57
+ ../../node_modules/@polkadot/x-textdecoder/node_modules/@polkadot/x-global/index.js (9:23): A comment
58
+
59
+ "/*#__PURE__*/"
60
+
61
+ in "../../node_modules/@polkadot/x-textdecoder/node_modules/@polkadot/x-global/index.js" contains an annotation that Rollup cannot interpret due to the position of the comment. The comment will be removed to avoid issues.
62
+ ../../node_modules/@polkadot/x-textencoder/node_modules/@polkadot/x-global/index.js (9:23): A comment
63
+
64
+ "/*#__PURE__*/"
65
+
66
+ in "../../node_modules/@polkadot/x-textencoder/node_modules/@polkadot/x-global/index.js" contains an annotation that Rollup cannot interpret due to the position of the comment. The comment will be removed to avoid issues.
67
+ Build end
68
+ ✓ 6 modules transformed.
69
+ rendering chunks...
70
+ dist/extension/Extension.js  0.04 kB
71
+ dist/index.js  0.24 kB
72
+ dist/extension/ExtensionWeb3.js  1.11 kB
73
+ dist/extension/ExtensionWeb2.js  2.38 kB
74
+ dist/workers/CryptoWorkerManager.js  4.63 kB
75
+ dist/workers/cryptoWorker.js 19.64 kB
76
+ ✓ built in 1.28s
@@ -1,16 +1,22 @@
1
1
 
2
- > @prosopo/account@2.7.43 build
3
- > NODE_ENV=${NODE_ENV:-development}; vite build --config vite.esm.config.ts --mode $NODE_ENV
2
+ > @prosopo/account@2.8.35 build
3
+ > npm run build:cross-env -- --mode ${NODE_ENV:-development}
4
+
5
+
6
+ > @prosopo/account@2.8.35 build:cross-env
7
+ > vite build --config vite.esm.config.ts --mode production
4
8
 
5
9
  ViteEsmConfig: .
6
10
  {
7
11
  tsConfigPaths: [
8
12
  '/home/runner/work/captcha/captcha/packages/common/tsconfig.json',
9
13
  '/home/runner/work/captcha/captcha/packages/locale/tsconfig.json',
10
- '/home/runner/work/captcha/captcha/packages/types/tsconfig.json',
14
+ '/home/runner/work/captcha/captcha/packages/logger/tsconfig.json',
11
15
  '/home/runner/work/captcha/captcha/packages/util/tsconfig.json',
16
+ '/home/runner/work/captcha/captcha/packages/types/tsconfig.json',
12
17
  '/home/runner/work/captcha/captcha/packages/util-crypto/tsconfig.json',
13
18
  '/home/runner/work/captcha/captcha/packages/fingerprint/tsconfig.json',
19
+ '/home/runner/work/captcha/captcha/packages/fingerprintjs/tsconfig.json',
14
20
  '/home/runner/work/captcha/captcha/packages/keyring/tsconfig.json'
15
21
  ]
16
22
  }
@@ -18,21 +24,45 @@ ViteEsmConfig: .
18
24
  externals: [
19
25
  '@prosopo/common',
20
26
  '@prosopo/locale',
21
- '@prosopo/types',
27
+ '@prosopo/logger',
22
28
  '@prosopo/util',
29
+ '@prosopo/types',
23
30
  '@prosopo/util-crypto',
24
31
  '@prosopo/fingerprint',
32
+ '@prosopo/fingerprintjs',
25
33
  '@prosopo/keyring'
26
34
  ]
27
35
  }
28
36
  vite v6.4.1 building SSR bundle for production...
29
37
  Bundle build started
30
38
  transforming...
39
+ ../../node_modules/@polkadot/x-randomvalues/node_modules/@polkadot/x-global/index.js (9:23): A comment
40
+
41
+ "/*#__PURE__*/"
42
+
43
+ in "../../node_modules/@polkadot/x-randomvalues/node_modules/@polkadot/x-global/index.js" contains an annotation that Rollup cannot interpret due to the position of the comment. The comment will be removed to avoid issues.
44
+ ../../node_modules/@polkadot/x-textdecoder/node_modules/@polkadot/x-global/index.js (9:23): A comment
45
+
46
+ "/*#__PURE__*/"
47
+
48
+ in "../../node_modules/@polkadot/x-textdecoder/node_modules/@polkadot/x-global/index.js" contains an annotation that Rollup cannot interpret due to the position of the comment. The comment will be removed to avoid issues.
49
+ ../../node_modules/@polkadot/x-textencoder/node_modules/@polkadot/x-global/index.js (9:23): A comment
50
+
51
+ "/*#__PURE__*/"
52
+
53
+ in "../../node_modules/@polkadot/x-textencoder/node_modules/@polkadot/x-global/index.js" contains an annotation that Rollup cannot interpret due to the position of the comment. The comment will be removed to avoid issues.
54
+ ../../node_modules/@polkadot/util/node_modules/@polkadot/x-global/index.js (9:23): A comment
55
+
56
+ "/*#__PURE__*/"
57
+
58
+ in "../../node_modules/@polkadot/util/node_modules/@polkadot/x-global/index.js" contains an annotation that Rollup cannot interpret due to the position of the comment. The comment will be removed to avoid issues.
31
59
  Build end
32
- ✓ 4 modules transformed.
60
+ ✓ 6 modules transformed.
33
61
  rendering chunks...
34
- dist/extension/Extension.js 0.04 kB
35
- dist/index.js 0.24 kB
36
- dist/extension/ExtensionWeb3.js 1.11 kB
37
- dist/extension/ExtensionWeb2.js 2.13 kB
38
- ✓ built in 213ms
62
+ dist/extension/Extension.js  0.04 kB
63
+ dist/index.js  0.24 kB
64
+ dist/extension/ExtensionWeb3.js  1.11 kB
65
+ dist/extension/ExtensionWeb2.js  2.38 kB
66
+ dist/workers/CryptoWorkerManager.js  4.63 kB
67
+ dist/workers/cryptoWorker.js 19.63 kB
68
+ ✓ built in 1.38s
package/CHANGELOG.md CHANGED
@@ -1,5 +1,390 @@
1
1
  # @prosopo/account
2
2
 
3
+ ## 2.8.35
4
+ ### Patch Changes
5
+
6
+ - Updated dependencies [a1d60db]
7
+ - Updated dependencies [2392aaf]
8
+ - Updated dependencies [6ca1125]
9
+ - @prosopo/types@4.3.0
10
+ - @prosopo/util@3.2.15
11
+ - @prosopo/common@3.1.38
12
+ - @prosopo/keyring@2.9.34
13
+
14
+ ## 2.8.34
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies [6c26669]
18
+ - Updated dependencies [f7f9ec5]
19
+ - @prosopo/types@4.2.1
20
+ - @prosopo/keyring@2.9.33
21
+
22
+ ## 2.8.33
23
+ ### Patch Changes
24
+
25
+ - Updated dependencies [0fd81af]
26
+ - @prosopo/common@3.1.37
27
+ - @prosopo/keyring@2.9.32
28
+
29
+ ## 2.8.32
30
+ ### Patch Changes
31
+
32
+ - Updated dependencies [20cae63]
33
+ - Updated dependencies [4d9923e]
34
+ - @prosopo/types@4.2.0
35
+ - @prosopo/keyring@2.9.31
36
+
37
+ ## 2.8.31
38
+ ### Patch Changes
39
+
40
+ - Updated dependencies [d351362]
41
+ - @prosopo/types@4.1.4
42
+ - @prosopo/keyring@2.9.30
43
+
44
+ ## 2.8.30
45
+ ### Patch Changes
46
+
47
+ - Updated dependencies [6567ce0]
48
+ - Updated dependencies [e2711ae]
49
+ - Updated dependencies [5786629]
50
+ - @prosopo/util@3.2.14
51
+ - @prosopo/types@4.1.3
52
+ - @prosopo/keyring@2.9.29
53
+ - @prosopo/common@3.1.36
54
+
55
+ ## 2.8.29
56
+ ### Patch Changes
57
+
58
+ - Updated dependencies [72a1218]
59
+ - @prosopo/util@3.2.13
60
+ - @prosopo/keyring@2.9.28
61
+ - @prosopo/types@4.1.2
62
+
63
+ ## 2.8.28
64
+ ### Patch Changes
65
+
66
+ - Updated dependencies [91958da]
67
+ - @prosopo/types@4.1.1
68
+ - @prosopo/common@3.1.35
69
+ - @prosopo/keyring@2.9.27
70
+
71
+ ## 2.8.27
72
+ ### Patch Changes
73
+
74
+ - Updated dependencies [6a741ce]
75
+ - @prosopo/types@4.1.0
76
+ - @prosopo/keyring@2.9.26
77
+
78
+ ## 2.8.26
79
+ ### Patch Changes
80
+
81
+ - 642d064: Fix `CryptoWorkerManager` import path so downstream Vite bundles resolve
82
+ the inlined worker. The import was `./cryptoWorker.ts?worker&inline`,
83
+ which kept the `.ts` extension through TypeScript compilation; the
84
+ emitted `dist/workers/CryptoWorkerManager.js` then referenced a
85
+ non-existent `.ts` file when consumed by `procaptcha-bundle`'s Rollup
86
+ build, breaking the cypress workflow with
87
+ `Could not resolve "./cryptoWorker.ts?worker&inline"`. Aligning with
88
+ the catcher pattern (`*.js?worker&inline`).
89
+ - Updated dependencies [642d064]
90
+ - @prosopo/fingerprint@2.6.31
91
+
92
+ ## 2.8.25
93
+ ### Patch Changes
94
+
95
+ - 4aae4e6: Pull the frictionless POST critical path down by ~340ms on the test
96
+ hardware via four focused changes:
97
+
98
+ - **Inline Signer.** `@polkadot/extension-base/page/Signer` is now a
99
+ static import in `ExtensionWeb2`. It's 0.5KB on disk but its dynamic
100
+ import was costing ~190ms of network round-trip; inlining removes
101
+ one separate chunk fetch + parse from the critical path.
102
+
103
+ - **Pre-warm the CryptoWorker.** `CryptoWorkerManager` gains a public
104
+ `prewarm()` that actually spawns the Worker and lets its script
105
+ parse during chunk-load time. Previously the call at module load
106
+ only instantiated the manager class; the worker itself spun up
107
+ lazily on the first `runTask`, putting the ~500ms worker module-eval
108
+ inside the first `createAccount()` call. Now it overlaps with chunk
109
+ loading and is hot by the time it's needed.
110
+
111
+ - **Prefetch providers at module load with an env-keyed cache.**
112
+ `prefetchProviders` and `getRandomActiveProvider` share an in-flight
113
+ `Promise<HardcodedProvider[]>` keyed by environment, so a module-load
114
+ prefetch and the later `customDetectBot` Promise.all reuse the same
115
+ network call. `procaptcha-frictionless` triggers the prefetch from
116
+ module-import time using `PROSOPO_DEFAULT_ENVIRONMENT` (browser-safe
117
+ `typeof process` guard + `EnvironmentTypesSchema.safeParse`), so the
118
+ HTTP fetch overlaps with chunk download instead of running as part
119
+ of the detection Promise.all.
120
+
121
+ - **Lazy-load the three captcha solvers.** `ProcaptchaFrictionless`
122
+ no longer statically imports `Procaptcha`, `ProcaptchaPuzzle`, and
123
+ `ProcaptchaPow`; each is `await import(...)` at the point the
124
+ frictionless response picks a type. Two of the three wrappers used
125
+ to be dead weight in the initial bundle; now only the chosen solver
126
+ is downloaded, after the frictionless POST has fired. Pulls ~64KB
127
+ of solver UI (chosen wrapper + Emotion dev runtime + builder + lazy
128
+ shim) out of the initial captchaRenderer chunk.
129
+
130
+ Combined with the earlier worker-related changes, the frictionless POST
131
+ on the puzzle-implicit test page is now ~1290ms vs ~1630ms before this
132
+ batch, and ~6500ms in the original baseline. The remaining floor is
133
+ dominated by the BotScoreWorker's obfuscated bundle parse + run.
134
+ - Updated dependencies [3c0be68]
135
+ - Updated dependencies [4aae4e6]
136
+ - Updated dependencies [f9ea09d]
137
+ - Updated dependencies [4aae4e6]
138
+ - Updated dependencies [d865319]
139
+ - Updated dependencies [753304b]
140
+ - Updated dependencies [8bb7286]
141
+ - Updated dependencies [f9ea09d]
142
+ - Updated dependencies [4aae4e6]
143
+ - Updated dependencies [4993813]
144
+ - @prosopo/types@4.0.0
145
+ - @prosopo/fingerprint@2.6.30
146
+ - @prosopo/util@3.2.12
147
+ - @prosopo/keyring@2.9.25
148
+ - @prosopo/common@3.1.34
149
+
150
+ ## 2.8.24
151
+ ### Patch Changes
152
+
153
+ - Updated dependencies [819ed95]
154
+ - @prosopo/types@3.16.1
155
+ - @prosopo/keyring@2.9.24
156
+
157
+ ## 2.8.23
158
+ ### Patch Changes
159
+
160
+ - Updated dependencies [f6a4402]
161
+ - Updated dependencies [99dfb44]
162
+ - @prosopo/types@3.16.0
163
+ - @prosopo/keyring@2.9.23
164
+
165
+ ## 2.8.22
166
+ ### Patch Changes
167
+
168
+ - Updated dependencies [3e54c0a]
169
+ - @prosopo/types@3.15.0
170
+ - @prosopo/keyring@2.9.22
171
+
172
+ ## 2.8.21
173
+ ### Patch Changes
174
+
175
+ - Updated dependencies [946a8ba]
176
+ - Updated dependencies [5614814]
177
+ - @prosopo/types@3.14.1
178
+ - @prosopo/common@3.1.33
179
+ - @prosopo/keyring@2.9.21
180
+
181
+ ## 2.8.20
182
+ ### Patch Changes
183
+
184
+ - Updated dependencies [fc514dd]
185
+ - Updated dependencies [42650db]
186
+ - @prosopo/types@3.14.0
187
+ - @prosopo/common@3.1.32
188
+ - @prosopo/keyring@2.9.20
189
+
190
+ ## 2.8.19
191
+ ### Patch Changes
192
+
193
+ - Updated dependencies [4a9c518]
194
+ - @prosopo/common@3.1.31
195
+ - @prosopo/keyring@2.9.19
196
+
197
+ ## 2.8.18
198
+ ### Patch Changes
199
+
200
+ - Updated dependencies [a25dffa]
201
+ - @prosopo/util@3.2.11
202
+ - @prosopo/keyring@2.9.18
203
+ - @prosopo/types@3.13.3
204
+
205
+ ## 2.8.17
206
+ ### Patch Changes
207
+
208
+ - Updated dependencies [346edd7]
209
+ - @prosopo/util@3.2.10
210
+ - @prosopo/keyring@2.9.17
211
+ - @prosopo/types@3.13.2
212
+
213
+ ## 2.8.16
214
+ ### Patch Changes
215
+
216
+ - Updated dependencies [22bfee7]
217
+ - @prosopo/util@3.2.9
218
+ - @prosopo/keyring@2.9.16
219
+ - @prosopo/types@3.13.1
220
+
221
+ ## 2.8.15
222
+ ### Patch Changes
223
+
224
+ - Updated dependencies [e0fb3d6]
225
+ - Updated dependencies [e6d9553]
226
+ - Updated dependencies [f3f23e3]
227
+ - @prosopo/util@3.2.8
228
+ - @prosopo/types@3.13.0
229
+ - @prosopo/keyring@2.9.15
230
+
231
+ ## 2.8.14
232
+ ### Patch Changes
233
+
234
+ - 730c61e: Speed up captcha
235
+ - Updated dependencies [730c61e]
236
+ - Updated dependencies [d5082a9]
237
+ - Updated dependencies [e1ea65f]
238
+ - Updated dependencies [c316257]
239
+ - @prosopo/fingerprint@2.6.29
240
+ - @prosopo/types@3.12.3
241
+ - @prosopo/util@3.2.7
242
+ - @prosopo/keyring@2.9.14
243
+
244
+ ## 2.8.13
245
+ ### Patch Changes
246
+
247
+ - Updated dependencies [adb89a6]
248
+ - @prosopo/types@3.12.2
249
+ - @prosopo/util@3.2.6
250
+ - @prosopo/common@3.1.30
251
+ - @prosopo/keyring@2.9.13
252
+
253
+ ## 2.8.12
254
+ ### Patch Changes
255
+
256
+ - Updated dependencies [c5ee492]
257
+ - Updated dependencies [a90eb54]
258
+ - @prosopo/common@3.1.29
259
+ - @prosopo/types@3.12.1
260
+ - @prosopo/keyring@2.9.12
261
+
262
+ ## 2.8.11
263
+ ### Patch Changes
264
+
265
+ - Updated dependencies [676c5f2]
266
+ - Updated dependencies [feaca02]
267
+ - @prosopo/keyring@2.9.11
268
+ - @prosopo/types@3.12.0
269
+
270
+ ## 2.8.10
271
+ ### Patch Changes
272
+
273
+ - Updated dependencies [8148587]
274
+ - @prosopo/types@3.11.1
275
+ - @prosopo/keyring@2.9.10
276
+
277
+ ## 2.8.9
278
+ ### Patch Changes
279
+
280
+ - Updated dependencies [7f6ffc5]
281
+ - @prosopo/types@3.11.0
282
+ - @prosopo/keyring@2.9.9
283
+
284
+ ## 2.8.8
285
+ ### Patch Changes
286
+
287
+ - Updated dependencies [93fa086]
288
+ - @prosopo/types@3.10.2
289
+ - @prosopo/keyring@2.9.8
290
+
291
+ ## 2.8.7
292
+ ### Patch Changes
293
+
294
+ - Updated dependencies [cde7550]
295
+ - @prosopo/types@3.10.1
296
+ - @prosopo/keyring@2.9.7
297
+
298
+ ## 2.8.6
299
+ ### Patch Changes
300
+
301
+ - Updated dependencies [ad6d622]
302
+ - @prosopo/types@3.10.0
303
+ - @prosopo/keyring@2.9.6
304
+
305
+ ## 2.8.5
306
+ ### Patch Changes
307
+
308
+ - Updated dependencies [ff58a70]
309
+ - @prosopo/types@3.9.0
310
+ - @prosopo/keyring@2.9.5
311
+
312
+ ## 2.8.4
313
+ ### Patch Changes
314
+
315
+ - Updated dependencies [d2431cd]
316
+ - @prosopo/types@3.8.4
317
+ - @prosopo/keyring@2.9.4
318
+
319
+ ## 2.8.3
320
+ ### Patch Changes
321
+
322
+ - Updated dependencies [bd6995b]
323
+ - @prosopo/types@3.8.3
324
+ - @prosopo/keyring@2.9.3
325
+
326
+ ## 2.8.2
327
+ ### Patch Changes
328
+
329
+ - Updated dependencies [9633e58]
330
+ - @prosopo/types@3.8.2
331
+ - @prosopo/keyring@2.9.2
332
+
333
+ ## 2.8.1
334
+ ### Patch Changes
335
+
336
+ - Updated dependencies [f52a5c1]
337
+ - @prosopo/types@3.8.1
338
+ - @prosopo/keyring@2.9.1
339
+
340
+ ## 2.8.0
341
+ ### Minor Changes
342
+
343
+ - 6a4d57d: Move account creation into worker
344
+
345
+ ### Patch Changes
346
+
347
+ - 0a38892: feat/cross-os-testing
348
+ - a8faa9a: bump license year
349
+ - 3acc333: Release 3.3.0
350
+ - Updated dependencies [a53526b]
351
+ - Updated dependencies [3acc333]
352
+ - Updated dependencies [0a38892]
353
+ - Updated dependencies [1ee3d80]
354
+ - Updated dependencies [a8faa9a]
355
+ - Updated dependencies [7543d17]
356
+ - Updated dependencies [3acc333]
357
+ - @prosopo/util@3.2.5
358
+ - @prosopo/util-crypto@13.5.29
359
+ - @prosopo/keyring@2.9.0
360
+ - @prosopo/types@3.8.0
361
+ - @prosopo/fingerprint@2.6.28
362
+ - @prosopo/common@3.1.28
363
+
364
+ ## 2.7.46
365
+ ### Patch Changes
366
+
367
+ - Updated dependencies [141e462]
368
+ - @prosopo/types@3.7.2
369
+ - @prosopo/keyring@2.8.43
370
+
371
+ ## 2.7.45
372
+ ### Patch Changes
373
+
374
+ - Updated dependencies [345b25b]
375
+ - @prosopo/types@3.7.1
376
+ - @prosopo/keyring@2.8.42
377
+
378
+ ## 2.7.44
379
+ ### Patch Changes
380
+
381
+ - Updated dependencies [ce70a2b]
382
+ - Updated dependencies [c2b940f]
383
+ - Updated dependencies [f6b5094]
384
+ - @prosopo/types@3.7.0
385
+ - @prosopo/common@3.1.27
386
+ - @prosopo/keyring@2.8.41
387
+
3
388
  ## 2.7.43
4
389
  ### Patch Changes
5
390
 
@@ -22,25 +22,27 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
22
22
  mod
23
23
  ));
24
24
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
25
+ const Signer = require("@polkadot/extension-base/page/Signer");
25
26
  const util$1 = require("@polkadot/util");
26
27
  const fingerprint = require("@prosopo/fingerprint");
27
28
  const keyring = require("@prosopo/keyring");
28
29
  const util = require("@prosopo/util");
29
30
  const utilCrypto = require("@prosopo/util-crypto");
31
+ const CryptoWorkerManager = require("../workers/CryptoWorkerManager.cjs");
30
32
  const Extension = require("./Extension.cjs");
31
- const SignerLoader = async () => (await import("@polkadot/extension-base/page/Signer")).default;
33
+ fingerprint.prefetchFingerprint();
34
+ CryptoWorkerManager.getCryptoWorkerManager().prewarm();
32
35
  const EntropyToMnemonicLoader = async () => (await import("@prosopo/util-crypto")).entropyToMnemonic;
33
36
  class ExtensionWeb2 extends Extension.Extension {
34
37
  async getAccount(config) {
35
38
  const account = await this.createAccount(config);
36
- const extension = await this.createExtension(account);
39
+ const extension = this.createExtension(account);
37
40
  return {
38
41
  account,
39
42
  extension
40
43
  };
41
44
  }
42
- async createExtension(account) {
43
- const Signer = await SignerLoader();
45
+ createExtension(account) {
44
46
  const signer = new Signer(async () => {
45
47
  return;
46
48
  });
@@ -72,8 +74,14 @@ class ExtensionWeb2 extends Extension.Extension {
72
74
  const browserEntropy = await fingerprint.getFingerprint();
73
75
  const entropy = utilCrypto.hexHash(browserEntropy, 128).slice(2);
74
76
  const u8Entropy = util$1.stringToU8a(entropy);
75
- const entropyToMnemonic = await EntropyToMnemonicLoader();
76
- const mnemonic = entropyToMnemonic(u8Entropy);
77
+ let mnemonic;
78
+ try {
79
+ const workerManager = CryptoWorkerManager.getCryptoWorkerManager();
80
+ mnemonic = await workerManager.entropyToMnemonic(u8Entropy);
81
+ } catch (workerError) {
82
+ const entropyToMnemonic = await EntropyToMnemonicLoader();
83
+ mnemonic = entropyToMnemonic(u8Entropy);
84
+ }
77
85
  const type = "sr25519";
78
86
  const keyring$1 = new keyring.Keyring({
79
87
  type