How to use the indy-sdk.buildGetCredDefRequest function in indy-sdk

To help you get started, we’ve selected a few indy-sdk examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github hyperledger / indy-agent / nodejs / indy / src / issuer / index.js View on Github external
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);
};
github hyperledger / indy-agent / nodejs / indy / common.js View on Github external
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);
};