@twin.org/identity-cli 0.0.1-next.50 → 0.0.1-next.51
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.
- package/dist/cjs/index.cjs +5 -3
- package/dist/esm/index.mjs +5 -3
- package/dist/locales/en.json +2 -1
- package/docs/changelog.md +15 -0
- package/locales/en.json +2 -1
- package/package.json +3 -3
package/dist/cjs/index.cjs
CHANGED
|
@@ -1013,8 +1013,11 @@ async function actionCommandVerificationMethodAdd(opts) {
|
|
|
1013
1013
|
const publicKeyHex = core.Is.uint8Array(keyPair.publicKey)
|
|
1014
1014
|
? core.Converter.bytesToHex(keyPair.publicKey, true)
|
|
1015
1015
|
: "";
|
|
1016
|
+
const jwk = await web.Jwk.fromEd25519Private(keyPair.privateKey);
|
|
1017
|
+
const kid = await web.Jwk.generateKid(jwk);
|
|
1016
1018
|
if (opts.console) {
|
|
1017
1019
|
cliCore.CLIDisplay.value(core.I18n.formatMessage("commands.verification-method-add.labels.verificationMethodId"), verificationMethod.id);
|
|
1020
|
+
cliCore.CLIDisplay.value(core.I18n.formatMessage("commands.verification-method-add.labels.kid"), kid);
|
|
1018
1021
|
cliCore.CLIDisplay.value(core.I18n.formatMessage("commands.verification-method-add.labels.privateKeyBase64"), privateKeyBase64);
|
|
1019
1022
|
cliCore.CLIDisplay.value(core.I18n.formatMessage("commands.verification-method-add.labels.publicKeyBase64"), publicKeyBase64);
|
|
1020
1023
|
cliCore.CLIDisplay.value(core.I18n.formatMessage("commands.verification-method-add.labels.privateKeyHex"), privateKeyHex);
|
|
@@ -1022,8 +1025,6 @@ async function actionCommandVerificationMethodAdd(opts) {
|
|
|
1022
1025
|
cliCore.CLIDisplay.break();
|
|
1023
1026
|
}
|
|
1024
1027
|
if (core.Is.stringValue(opts?.json)) {
|
|
1025
|
-
const jwk = await web.Jwk.fromEd25519Private(keyPair.privateKey);
|
|
1026
|
-
const kid = await web.Jwk.generateKid(jwk);
|
|
1027
1028
|
await cliCore.CLIUtils.writeJsonFile(opts.json, {
|
|
1028
1029
|
kid,
|
|
1029
1030
|
...jwk
|
|
@@ -1032,6 +1033,7 @@ async function actionCommandVerificationMethodAdd(opts) {
|
|
|
1032
1033
|
if (core.Is.stringValue(opts?.env)) {
|
|
1033
1034
|
await cliCore.CLIUtils.writeEnvFile(opts.env, [
|
|
1034
1035
|
`DID_VERIFICATION_METHOD_ID="${verificationMethod.id}"`,
|
|
1036
|
+
`DID_VERIFICATION_METHOD_KID="${kid}"`,
|
|
1035
1037
|
`DID_VERIFICATION_METHOD_PRIVATE_KEY="${privateKeyHex}"`,
|
|
1036
1038
|
`DID_VERIFICATION_METHOD_PUBLIC_KEY="${publicKeyHex}"`
|
|
1037
1039
|
], opts.mergeEnv);
|
|
@@ -1144,7 +1146,7 @@ class CLI extends cliCore.CLIBase {
|
|
|
1144
1146
|
return this.execute({
|
|
1145
1147
|
title: "TWIN Identity",
|
|
1146
1148
|
appName: "twin-identity",
|
|
1147
|
-
version: "0.0.1-next.
|
|
1149
|
+
version: "0.0.1-next.51", // x-release-please-version
|
|
1148
1150
|
icon: "🌍",
|
|
1149
1151
|
supportsEnvFiles: true,
|
|
1150
1152
|
overrideOutputWidth: options?.overrideOutputWidth
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1010,8 +1010,11 @@ async function actionCommandVerificationMethodAdd(opts) {
|
|
|
1010
1010
|
const publicKeyHex = Is.uint8Array(keyPair.publicKey)
|
|
1011
1011
|
? Converter.bytesToHex(keyPair.publicKey, true)
|
|
1012
1012
|
: "";
|
|
1013
|
+
const jwk = await Jwk.fromEd25519Private(keyPair.privateKey);
|
|
1014
|
+
const kid = await Jwk.generateKid(jwk);
|
|
1013
1015
|
if (opts.console) {
|
|
1014
1016
|
CLIDisplay.value(I18n.formatMessage("commands.verification-method-add.labels.verificationMethodId"), verificationMethod.id);
|
|
1017
|
+
CLIDisplay.value(I18n.formatMessage("commands.verification-method-add.labels.kid"), kid);
|
|
1015
1018
|
CLIDisplay.value(I18n.formatMessage("commands.verification-method-add.labels.privateKeyBase64"), privateKeyBase64);
|
|
1016
1019
|
CLIDisplay.value(I18n.formatMessage("commands.verification-method-add.labels.publicKeyBase64"), publicKeyBase64);
|
|
1017
1020
|
CLIDisplay.value(I18n.formatMessage("commands.verification-method-add.labels.privateKeyHex"), privateKeyHex);
|
|
@@ -1019,8 +1022,6 @@ async function actionCommandVerificationMethodAdd(opts) {
|
|
|
1019
1022
|
CLIDisplay.break();
|
|
1020
1023
|
}
|
|
1021
1024
|
if (Is.stringValue(opts?.json)) {
|
|
1022
|
-
const jwk = await Jwk.fromEd25519Private(keyPair.privateKey);
|
|
1023
|
-
const kid = await Jwk.generateKid(jwk);
|
|
1024
1025
|
await CLIUtils.writeJsonFile(opts.json, {
|
|
1025
1026
|
kid,
|
|
1026
1027
|
...jwk
|
|
@@ -1029,6 +1030,7 @@ async function actionCommandVerificationMethodAdd(opts) {
|
|
|
1029
1030
|
if (Is.stringValue(opts?.env)) {
|
|
1030
1031
|
await CLIUtils.writeEnvFile(opts.env, [
|
|
1031
1032
|
`DID_VERIFICATION_METHOD_ID="${verificationMethod.id}"`,
|
|
1033
|
+
`DID_VERIFICATION_METHOD_KID="${kid}"`,
|
|
1032
1034
|
`DID_VERIFICATION_METHOD_PRIVATE_KEY="${privateKeyHex}"`,
|
|
1033
1035
|
`DID_VERIFICATION_METHOD_PUBLIC_KEY="${publicKeyHex}"`
|
|
1034
1036
|
], opts.mergeEnv);
|
|
@@ -1141,7 +1143,7 @@ class CLI extends CLIBase {
|
|
|
1141
1143
|
return this.execute({
|
|
1142
1144
|
title: "TWIN Identity",
|
|
1143
1145
|
appName: "twin-identity",
|
|
1144
|
-
version: "0.0.1-next.
|
|
1146
|
+
version: "0.0.1-next.51", // x-release-please-version
|
|
1145
1147
|
icon: "🌍",
|
|
1146
1148
|
supportsEnvFiles: true,
|
|
1147
1149
|
overrideOutputWidth: options?.overrideOutputWidth
|
package/dist/locales/en.json
CHANGED
|
@@ -625,7 +625,8 @@
|
|
|
625
625
|
"privateKeyBase64": "Private Key Base64",
|
|
626
626
|
"publicKeyBase64": "Public Key Base64",
|
|
627
627
|
"privateKeyHex": "Private Key Hex",
|
|
628
|
-
"publicKeyHex": "Public Key Hex"
|
|
628
|
+
"publicKeyHex": "Public Key Hex",
|
|
629
|
+
"kid": "Key Id"
|
|
629
630
|
}
|
|
630
631
|
},
|
|
631
632
|
"verification-method-remove": {
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @twin.org/identity-cli - Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.1-next.51](https://github.com/twinfoundation/identity/compare/identity-cli-v0.0.1-next.50...identity-cli-v0.0.1-next.51) (2025-06-19)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* support mainnet for alias extraction ([1114e0f](https://github.com/twinfoundation/identity/commit/1114e0f518070ef930d7d6ed73a616cce647206c))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* The following workspace dependencies were updated
|
|
14
|
+
* dependencies
|
|
15
|
+
* @twin.org/identity-models bumped from 0.0.1-next.50 to 0.0.1-next.51
|
|
16
|
+
* @twin.org/identity-connector-iota bumped from 0.0.1-next.50 to 0.0.1-next.51
|
|
17
|
+
|
|
3
18
|
## [0.0.1-next.50](https://github.com/twinfoundation/identity/compare/identity-cli-v0.0.1-next.49...identity-cli-v0.0.1-next.50) (2025-06-19)
|
|
4
19
|
|
|
5
20
|
|
package/locales/en.json
CHANGED
|
@@ -78,7 +78,8 @@
|
|
|
78
78
|
"privateKeyBase64": "Private Key Base64",
|
|
79
79
|
"publicKeyBase64": "Public Key Base64",
|
|
80
80
|
"privateKeyHex": "Private Key Hex",
|
|
81
|
-
"publicKeyHex": "Public Key Hex"
|
|
81
|
+
"publicKeyHex": "Public Key Hex",
|
|
82
|
+
"kid": "Key Id"
|
|
82
83
|
}
|
|
83
84
|
},
|
|
84
85
|
"verification-method-remove": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/identity-cli",
|
|
3
|
-
"version": "0.0.1-next.
|
|
3
|
+
"version": "0.0.1-next.51",
|
|
4
4
|
"description": "A command line interface for interacting with the identity connectors",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"@twin.org/data-json-ld": "next",
|
|
22
22
|
"@twin.org/entity": "next",
|
|
23
23
|
"@twin.org/entity-storage-connector-memory": "next",
|
|
24
|
-
"@twin.org/identity-connector-iota": "0.0.1-next.
|
|
25
|
-
"@twin.org/identity-models": "0.0.1-next.
|
|
24
|
+
"@twin.org/identity-connector-iota": "0.0.1-next.51",
|
|
25
|
+
"@twin.org/identity-models": "0.0.1-next.51",
|
|
26
26
|
"@twin.org/nameof": "next",
|
|
27
27
|
"@twin.org/standards-w3c-did": "next",
|
|
28
28
|
"@twin.org/vault-connector-entity-storage": "next",
|