New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@sphereon/ssi-sdk-ext.key-manager

Package Overview
Dependencies
Maintainers
0
Versions
364
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sphereon/ssi-sdk-ext.key-manager - npm Package Compare versions

Comparing version 0.26.1-feature.SPRIND.116.8 to 0.26.1-feature.SPRIND.124.esim.28

2

dist/agent/SphereonKeyManager.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc