This repository was archived by the owner on Feb 25, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,25 @@ encourage or provide a [native, if not core][wtf] Web Cryptography module.
53
53
$ npm install @trust/webcrypto --save
54
54
```
55
55
56
+ ### Not for use in Webpack
57
+
58
+ This library is not for use in Webpack.
59
+
60
+ The whole point of this library is that it's an exact duplicate of the browser's WebCrypto API,
61
+ for the server side.
62
+
63
+ For Webpacked web applications,
64
+ you don't need it (and can't use it).
65
+ If this module is transitively included by another dependency,
66
+ you have to exclude it by adding it to the [ ` externals ` section in the Webpack config] ( https://webpack.js.org/configuration/externals/ ) ,
67
+ such as this:
68
+
69
+ ```
70
+ externals: {
71
+ '@trust/webcrypto': 'crypto'
72
+ }
73
+ ```
74
+
56
75
## Usage
57
76
58
77
``` javascript
@@ -109,7 +128,7 @@ Only the following paramaters are supported for the corresponding algorithm.
109
128
| Algorithm name | Supported paramater |
110
129
| -------------- | ------------------- |
111
130
| ECDSA | ` K-256 (secp256k1) ` , ` P-256 ` , ` P-384 ` , ` P-512 ` |
112
- | EDDSA | ` ed25519 ` |
131
+ | EDDSA | ` ed25519 ` |
113
132
| AES-CTR | ` sha-1 ` |
114
133
115
134
You can’t perform that action at this time.
0 commit comments