@sphereon/ssi-sdk-ext.key-manager
Advanced tools
Comparing version 0.26.1-feature.SPRIND.116.8 to 0.26.1-feature.SPRIND.124.esim.28
@@ -114,3 +114,3 @@ "use strict"; | ||
} | ||
return yield (0, ssi_sdk_ext_key_utils_1.verifySignatureWithSubtle)({ | ||
return yield (0, ssi_sdk_ext_key_utils_1.verifyRawSignature)({ | ||
key: (0, ssi_sdk_ext_key_utils_1.toJwk)(args.publicKeyHex, args.type), | ||
@@ -117,0 +117,0 @@ data: args.data, |
{ | ||
"name": "@sphereon/ssi-sdk-ext.key-manager", | ||
"description": "Sphereon Key Manager plugin with BLS support", | ||
"version": "0.26.1-feature.SPRIND.116.8+67b5af1", | ||
"version": "0.26.1-feature.SPRIND.124.esim.28+14a58a4", | ||
"source": "src/index.ts", | ||
@@ -24,4 +24,4 @@ "main": "dist/index.js", | ||
"@mattrglobal/bbs-signatures": "^1.3.1", | ||
"@sphereon/ssi-sdk-ext.key-utils": "0.26.1-feature.SPRIND.116.8+67b5af1", | ||
"@sphereon/ssi-sdk-ext.kms-local": "0.26.1-feature.SPRIND.116.8+67b5af1", | ||
"@sphereon/ssi-sdk-ext.key-utils": "0.26.1-feature.SPRIND.124.esim.28+14a58a4", | ||
"@sphereon/ssi-sdk-ext.kms-local": "0.26.1-feature.SPRIND.124.esim.28+14a58a4", | ||
"@sphereon/ssi-sdk.dev": "0.30.2-feature.SDK.41.oidf.support.286" | ||
@@ -51,3 +51,3 @@ }, | ||
], | ||
"gitHead": "67b5af10a1af66aaa03c225c0303cd323a2d5c80" | ||
"gitHead": "14a58a4cde69c964f85ac741a1bd4410dc0ecc84" | ||
} |
@@ -1,2 +0,2 @@ | ||
import { calculateJwkThumbprintForKey, toJwk, verifySignatureWithSubtle } from '@sphereon/ssi-sdk-ext.key-utils' | ||
import { calculateJwkThumbprintForKey, toJwk, verifyRawSignature } from '@sphereon/ssi-sdk-ext.key-utils' | ||
import { IKey, KeyMetadata, ManagedKeyInfo } from '@veramo/core' | ||
@@ -79,3 +79,3 @@ import { AbstractKeyManagementSystem, AbstractKeyStore, KeyManager as VeramoKeyManager } from '@veramo/key-manager' | ||
async keyManagerSign(args: ISphereonKeyManagerSignArgs): Promise<string> { | ||
const keyInfo = await this.keyManagerGet({kid: args.keyRef}) | ||
const keyInfo = await this.keyManagerGet({ kid: args.keyRef }) | ||
const kms = this.getKmsByName(keyInfo.kms) | ||
@@ -86,3 +86,3 @@ if (keyInfo.type === 'Bls12381G2') { | ||
// @ts-ignore // we can pass in uint8arrays as well, which the super also can handle but does not expose in its types | ||
return await super.keyManagerSign({...args, keyRef: keyInfo.kid}) | ||
return await super.keyManagerSign({ ...args, keyRef: keyInfo.kid }) | ||
} | ||
@@ -98,3 +98,3 @@ | ||
} | ||
return await verifySignatureWithSubtle({ | ||
return await verifyRawSignature({ | ||
key: toJwk(args.publicKeyHex, args.type), | ||
@@ -101,0 +101,0 @@ data: args.data, |
Sorry, the diff of this file is not supported yet
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
71153