@vess-id/ai-identity 0.5.0 → 0.7.0
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/did/did-utils.d.ts +7 -0
- package/dist/did/did-utils.d.ts.map +1 -1
- package/dist/index.d.mts +14 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -0
- package/dist/index.mjs.map +1 -1
- package/dist/memory/memory-manager.d.ts +6 -0
- package/dist/memory/memory-manager.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -382,6 +382,11 @@ function isValidDidJwk(did) {
|
|
|
382
382
|
function getKeyIdFromDid(did) {
|
|
383
383
|
return `${did}#0`;
|
|
384
384
|
}
|
|
385
|
+
function publicKeysMatch(a, b) {
|
|
386
|
+
if (!a.kty || !a.crv || !a.x || !a.y) return false;
|
|
387
|
+
if (!b.kty || !b.crv || !b.x || !b.y) return false;
|
|
388
|
+
return a.kty === b.kty && a.crv === b.crv && a.x === b.x && a.y === b.y;
|
|
389
|
+
}
|
|
385
390
|
|
|
386
391
|
// src/utils/sdjwt-client.ts
|
|
387
392
|
import { subtle as subtle2 } from "crypto";
|
|
@@ -5762,6 +5767,7 @@ export {
|
|
|
5762
5767
|
parseGrantAction,
|
|
5763
5768
|
parseGrantResourceType,
|
|
5764
5769
|
planDelegationForVC,
|
|
5770
|
+
publicKeysMatch,
|
|
5765
5771
|
resolveActionsFromSelection,
|
|
5766
5772
|
resolveProvider,
|
|
5767
5773
|
resolveResourceType,
|