You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/develop/01_sdk/04_integrate/04_extension_api.md
+13-7Lines changed: 13 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -171,24 +171,30 @@ The `createDidConfig` CLI tool **only** works if you installed the package with
171
171
172
172
Run the CLI tool using Yarn as follows:
173
173
174
-
<!-- TODO: More info on these -->
175
-
176
174
```bash
177
175
yarn createDidConfig --did <your DID> --origin <your domain> --assertionMethod <id of your DID's assertionMethod key> --seed <seed or mnemonic of the assertionMethod key>
178
176
```
179
177
180
-
Use the tool's `--help` flag to see all available options:
178
+
:::info
179
+
180
+
- `did`: DID of the issuer (and subject) of the Domain Linkage Credential. If omitted, attempts to infer this from the `assertionMethod`.
181
+
- `seed`: Mnemonic or seed for the `assertionMethod` key used for issuing a new credential.
182
+
- `origin`: Domain of the application that will be using the DID Configuration Resource.
183
+
- `assertionMethod`: ID of the `assertionMethod` key used for issuing a new credential.
184
+
:::
185
+
186
+
Use the `--help` flag to see all available options:
181
187
182
188
```bash
183
189
yarn createDidConfig --help
184
190
```
185
191
186
192
### Integration into an App
187
193
188
-
Similar functionality to the CLI tool is available forusein application code using the `kilt-extension-api/wellKnownDidConfiguration` subpath:
194
+
Similar functionality to the CLI tool is available for use in application code using the `@kiltprotocol/extension-api/wellKnownDidConfiguration` subpath:
189
195
190
196
```ts
191
-
import { createCredential, didConfigResourceFromCredential } from './wellKnownDidConfiguration/index.js'
197
+
import { createCredential, didConfigResourceFromCredential } from '@kiltprotocol/extension-api/wellKnownDidConfiguration'
0 commit comments