@twin.org/identity-connector-entity-storage 0.0.1-next.49 → 0.0.1-next.50
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 +1 -2
- package/dist/esm/index.mjs +2 -3
- package/docs/changelog.md +14 -0
- package/package.json +2 -2
package/dist/cjs/index.cjs
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
var entity = require('@twin.org/entity');
|
|
4
4
|
var core = require('@twin.org/core');
|
|
5
|
-
var crypto = require('@twin.org/crypto');
|
|
6
5
|
var dataJsonLd = require('@twin.org/data-json-ld');
|
|
7
6
|
var entityStorageModels = require('@twin.org/entity-storage-models');
|
|
8
7
|
var identityModels = require('@twin.org/identity-models');
|
|
@@ -206,7 +205,7 @@ class EntityStorageIdentityConnector {
|
|
|
206
205
|
crv: "Ed25519",
|
|
207
206
|
x: core.Converter.bytesToBase64Url(verificationPublicKey)
|
|
208
207
|
};
|
|
209
|
-
const kid =
|
|
208
|
+
const kid = await web.Jwk.generateKid(jwkParams);
|
|
210
209
|
const methodId = `${documentId}#${verificationMethodId ?? kid}`;
|
|
211
210
|
await this._vaultConnector.renameKey(EntityStorageIdentityConnector.buildVaultKey(didDocument.id, tempKeyId), EntityStorageIdentityConnector.buildVaultKey(didDocument.id, verificationMethodId ?? kid));
|
|
212
211
|
const methods = this.getAllMethods(didDocument);
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { property, entity, ComparisonOperator, EntitySchemaFactory, EntitySchemaHelper } from '@twin.org/entity';
|
|
2
2
|
import { JsonHelper, Converter, GeneralError, Guards, RandomHelper, BitString, Compression, CompressionType, Is, NotFoundError, ObjectHelper, Coerce, AlreadyExistsError, BaseError } from '@twin.org/core';
|
|
3
|
-
import { Sha256 } from '@twin.org/crypto';
|
|
4
3
|
import { JsonLdProcessor } from '@twin.org/data-json-ld';
|
|
5
4
|
import { EntityStorageConnectorFactory } from '@twin.org/entity-storage-models';
|
|
6
5
|
import { DocumentHelper } from '@twin.org/identity-models';
|
|
7
6
|
import { DidContexts, DidVerificationMethodType, DidTypes, ProofTypes, ProofHelper } from '@twin.org/standards-w3c-did';
|
|
8
7
|
import { VaultConnectorFactory, VaultKeyType, VaultConnectorHelper } from '@twin.org/vault-models';
|
|
9
|
-
import {
|
|
8
|
+
import { Jwk, Jwt } from '@twin.org/web';
|
|
10
9
|
|
|
11
10
|
// Copyright 2024 IOTA Stiftung.
|
|
12
11
|
// SPDX-License-Identifier: Apache-2.0.
|
|
@@ -204,7 +203,7 @@ class EntityStorageIdentityConnector {
|
|
|
204
203
|
crv: "Ed25519",
|
|
205
204
|
x: Converter.bytesToBase64Url(verificationPublicKey)
|
|
206
205
|
};
|
|
207
|
-
const kid =
|
|
206
|
+
const kid = await Jwk.generateKid(jwkParams);
|
|
208
207
|
const methodId = `${documentId}#${verificationMethodId ?? kid}`;
|
|
209
208
|
await this._vaultConnector.renameKey(EntityStorageIdentityConnector.buildVaultKey(didDocument.id, tempKeyId), EntityStorageIdentityConnector.buildVaultKey(didDocument.id, verificationMethodId ?? kid));
|
|
210
209
|
const methods = this.getAllMethods(didDocument);
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @twin.org/identity-connector-entity-storage- Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.1-next.50](https://github.com/twinfoundation/identity/compare/identity-connector-entity-storage-v0.0.1-next.49...identity-connector-entity-storage-v0.0.1-next.50) (2025-06-19)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* use new generateKid method ([f0fe779](https://github.com/twinfoundation/identity/commit/f0fe779323b675575bb9f80aa74f1957dc57a094))
|
|
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.49 to 0.0.1-next.50
|
|
16
|
+
|
|
3
17
|
## [0.0.1-next.49](https://github.com/twinfoundation/identity/compare/identity-connector-entity-storage-v0.0.1-next.48...identity-connector-entity-storage-v0.0.1-next.49) (2025-06-18)
|
|
4
18
|
|
|
5
19
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/identity-connector-entity-storage",
|
|
3
|
-
"version": "0.0.1-next.
|
|
3
|
+
"version": "0.0.1-next.50",
|
|
4
4
|
"description": "Identity connector implementation using entity storage",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"@twin.org/data-core": "next",
|
|
20
20
|
"@twin.org/data-json-ld": "next",
|
|
21
21
|
"@twin.org/entity": "next",
|
|
22
|
-
"@twin.org/identity-models": "0.0.1-next.
|
|
22
|
+
"@twin.org/identity-models": "0.0.1-next.50",
|
|
23
23
|
"@twin.org/nameof": "next",
|
|
24
24
|
"@twin.org/standards-w3c-did": "next",
|
|
25
25
|
"@twin.org/vault-models": "next",
|