Socket
Socket
Sign inDemoInstall

@unumid/server-sdk

Package Overview
Dependencies
Maintainers
1
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@unumid/server-sdk - npm Package Compare versions

Comparing version 3.21.0 to 3.21.1

2

build/utils/didHelper.js

@@ -99,3 +99,3 @@ "use strict";

didDocResponse = _a.sent();
logger_1.default.debug("DidDoc repsonse: " + didDocResponse);
logger_1.default.debug("DidDoc repsonse: " + JSON.stringify(didDocResponse));
if (didDocResponse instanceof Error) {

@@ -102,0 +102,0 @@ throw didDocResponse;

@@ -18,3 +18,3 @@ "use strict";

exports.doVerify = function (signature, data, publicKey) {
logger_1.default.debug("Signature data verification using public key " + publicKey);
logger_1.default.debug("Signature data verification using public key " + JSON.stringify(publicKey));
var result = library_crypto_1.verifyBytes(signature, data, publicKey);

@@ -53,3 +53,3 @@ logger_1.default.debug("Signature data is valid: " + result + ".");

if (encoding === void 0) { encoding = 'pem'; }
logger_1.default.debug("Signature data verification using public key " + publicKey);
logger_1.default.debug("Signature data verification using public key " + JSON.stringify(publicKey));
var result = library_crypto_1.verify(signature, data, publicKey, encoding);

@@ -75,3 +75,3 @@ logger_1.default.debug("Signature data is valid: " + result + ".");

}
logger_1.default.debug("Signature unsignedString verification using public key " + publicKey);
logger_1.default.debug("Signature unsignedString verification using public key " + JSON.stringify(publicKey));
var result = library_crypto_1.verifyString(signature, dataString, publicKey, encoding);

@@ -78,0 +78,0 @@ logger_1.default.debug("Signature unsignedString is valid: " + result + ".");

{
"name": "@unumid/server-sdk",
"version": "3.21.0",
"version": "3.21.1",
"main": "build/index.js",

@@ -5,0 +5,0 @@ "repository": "git@github.com:UnumID/Server-SDK-TypeScript.git",

@@ -56,3 +56,3 @@ import { CredentialSubject, DidDocument, DidKeyType, PublicKeyInfo, Credential, CredentialPb } from '@unumid/types';

logger.debug(`DidDoc repsonse: ${didDocResponse}`);
logger.debug(`DidDoc repsonse: ${JSON.stringify(didDocResponse)}`);

@@ -59,0 +59,0 @@ if (didDocResponse instanceof Error) {

@@ -14,3 +14,3 @@ import logger from '../logger';

export const doVerify = (signature: string, data: Uint8Array, publicKey: PublicKeyInfo): boolean => {
logger.debug(`Signature data verification using public key ${publicKey}`);
logger.debug(`Signature data verification using public key ${JSON.stringify(publicKey)}`);
const result:boolean = verifyBytes(signature, data, publicKey);

@@ -51,3 +51,3 @@

const doVerifyData = (signature: string, data: JSONObj, publicKey: string, encoding: 'base58' | 'pem' = 'pem'): boolean => {
logger.debug(`Signature data verification using public key ${publicKey}`);
logger.debug(`Signature data verification using public key ${JSON.stringify(publicKey)}`);
const result:boolean = verify(signature, data, publicKey, encoding);

@@ -75,3 +75,3 @@

logger.debug(`Signature unsignedString verification using public key ${publicKey}`);
logger.debug(`Signature unsignedString verification using public key ${JSON.stringify(publicKey)}`);
const result:boolean = verifyString(signature, dataString, publicKey, encoding);

@@ -78,0 +78,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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