Artifact Content
Not logged in

Artifact ec94697d8cb8fd5b1720acd33cda38f695f6b3ca:


const { getObj } = require('./helpers');

module.exports.manifest = {
  getRaw: 'promise'
};

/**
 * Generate raw string copy of encryption key
 * @param appToken - application token
 * @param signKeyHandle - public encrypted key handle
 * @return {Promise<String>}
 */
module.exports.getRaw = (appToken, signKeyHandle) => {
  return getObj(appToken)
    .then(() => getObj(signKeyHandle))
    .then((signKey) => signKey.getRaw());
};