Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
exports.getCredDef = async function(poolHandle, did, credDefId) {
let getCredDefRequest = await sdk.buildGetCredDefRequest(did, credDefId);
let getCredDefResponse = await sdk.submitRequest(poolHandle, getCredDefRequest);
return await sdk.parseGetCredDefResponse(getCredDefResponse);
};
exports.getCredDef = async function(poolHandle, did, schemaId) {
let getCredDefRequest = await indy.buildGetCredDefRequest(did, schemaId);
let getCredDefResponse = await indy.submitRequest(poolHandle, getCredDefRequest);
return await indy.parseGetCredDefResponse(getCredDefResponse);
};