@unumid/server-sdk
Advanced tools
Comparing version 3.21.0 to 3.21.1
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1411163