pub fn parse_get_cred_def_response_timeout(get_cred_def_response: &str, timeout: Duration) -> Result<(String, String), ErrorCode> {
        let (receiver, command_handle, cb) = ClosureHandler::cb_ec_string_string();

        let err = Ledger::_parse_get_cred_def_response(command_handle, get_cred_def_response, cb);

        ResultHandler::two_timeout(err, receiver, timeout)
    }
/// Parse a GET_CRED_DEF response to get Credential Definition in the format compatible with Anoncreds API.
///
/// # Arguments
/// * `get_cred_def_response` - response of GET_CRED_DEF request.
/// * `timeout` - the maximum time this function waits for a response
///
/// # Returns
/// Credential Definition Id and Credential Definition json.
/// {
///     id: string - identifier of credential definition
///     schemaId: string - identifier of stored in ledger schema
///     type: string - type of the credential definition. CL is the only supported type now.
///     tag: string - allows to distinct between credential definitions for the same issuer and schema
///     value: Dictionary with Credential Definition's data: {
///         primary: primary credential public key,
///         Optional<revocation>: revocation credential public key
///     },
///     ver: Version of the Credential Definition json
/// }
Parse a GET_CRED_DEF response to get Credential Definition in the format compatible with Anoncreds API.
Parse a GET_CRED_DEF response to get Credential Definition in the format compatible with Anoncreds API .
pub fn parse_get_cred_def_response_timeout(get_cred_def_response: &str, timeout: Duration) -> Result<(String, String), ErrorCode> {
        let (receiver, command_handle, cb) = ClosureHandler::cb_ec_string_string();
        let err = Ledger::_parse_get_cred_def_response(command_handle, get_cred_def_response, cb);
        ResultHandler::two_timeout(err, receiver, timeout)
    }
pub fn parse_get_cred_def_response_timeout ( get_cred_def_response : & str , timeout : Duration ) -> Result < ( String , String ) , ErrorCode > { let ( receiver , command_handle , cb ) = ClosureHandler :: cb_ec_string_string ( ) ; let err = Ledger :: _parse_get_cred_def_response ( command_handle , get_cred_def_response , cb ) ; ResultHandler :: two_timeout ( err , receiver , timeout ) }
Parse a GET_CRED_DEF response to get Credential Definition in the format compatible with Anoncreds API.
Parse a GET_CRED_DEF response to get Credential Definition in the format compatible with Anoncreds API .
Credential Definition Id and Credential Definition json.
{
id: string - identifier of credential definition
schemaId: string - identifier of stored in ledger schema
type: string - type of the credential definition. CL is the only supported type now.
tag: string - allows to distinct between credential definitions for the same issuer and schema
value: Dictionary with Credential Definition's data: {
primary: primary credential public key,
Optional: revocation credential public key
},
ver: Version of the Credential Definition json
}
Credential Definition Id and Credential Definition json . { id : string - identifier of credential definition schemaId : string - identifier of stored in ledger schema type : string - type of the credential definition . CL is the only supported type now . tag : string - allows to distinct between credential definitions for the same issuer and schema value : Dictionary with Credential Definition ' s data : { primary : primary credential public key Optional : revocation credential public key } ver : Version of the Credential Definition json }
get_cred_def_response
&str
timeout
Duration