Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
"use strict";
const iocane = require("iocane").crypto;
const Model = require("./Model.js");
const Signing = require("../tools/signing.js");
/**
* The signature of encrypted credentials
* @private
* @type {string}
* @memberof Credentials
*/
const SIGNING_KEY = Signing.getSignature() + "cred.";
/**
* Sign encrypted content
* @see SIGNING_KEY
* @private
const iocane = require("iocane").crypto;
const Archive = require("./Archive.js");
const Credentials = require("./credentials.js");
const signing = require("../tools/signing.js");
const encoding = require("../tools/encoding.js");
const createDebug = require("../tools/debug.js");
const historyTools = require("../tools/history.js");
const registerDatasource = require("./DatasourceAdapter.js").registerDatasource;
/**
* Current appointed callback for decrypting archive content
* @type {Function}
* @private
*/
let __appointedEncToHistoryCB = convertEncryptedContentToHistory,
/**
const iocane = require("iocane").crypto;
const Signing = require("../tools/signing.js");
/**
* The credentials type key
* @private
* @type {String}
*/
const CREDENTIALS_ATTR = "@@bcup-role";
/**
* The signature of encrypted credentials
* @private
* @type {string}
*/
const SIGNING_KEY = Signing.getSignature() + "creds.v2.";