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

        let err = Ledger::_parse_get_revoc_reg_def_response(command_handle, get_revoc_reg_def_response, cb);

        ResultHandler::two_timeout(err, receiver, timeout)
    }
/// Parse a GET_REVOC_REG_DEF response to get Revocation Registry Definition in the format
/// compatible with Anoncreds API.
///
/// #Params
/// * `get_revoc_reg_def_response` - response of GET_REVOC_REG_DEF request.
/// * `timeout` - the maximum time this function waits for a response
///
/// # Returns
/// Revocation Registry Definition Id and Revocation Registry Definition json.
/// {
///     "id": string - ID of the Revocation Registry,
///     "revocDefType": string - Revocation Registry type (only CL_ACCUM is supported for now),
///     "tag": string - Unique descriptive ID of the Registry,
///     "credDefId": string - ID of the corresponding CredentialDefinition,
///     "value": Registry-specific data {
///         "issuanceType": string - Type of Issuance(ISSUANCE_BY_DEFAULT or ISSUANCE_ON_DEMAND),
///         "maxCredNum": number - Maximum number of credentials the Registry can serve.
///         "tailsHash": string - Hash of tails.
///         "tailsLocation": string - Location of tails file.
///         "publicKeys": <public_keys> - Registry's public key.
///     },
///     "ver": string - version of revocation registry definition json.
/// }
Parse a GET_REVOC_REG_DEF response to get Revocation Registry Definition in the format
compatible with Anoncreds API.
Parse a GET_REVOC_REG_DEF response to get Revocation Registry Definition in the format compatible with Anoncreds API .
pub fn parse_get_revoc_reg_def_response_timeout(get_revoc_reg_def_response: &str, timeout: Duration) -> Result<(String, String), ErrorCode> {
        let (receiver, command_handle, cb) = ClosureHandler::cb_ec_string_string();
        let err = Ledger::_parse_get_revoc_reg_def_response(command_handle, get_revoc_reg_def_response, cb);
        ResultHandler::two_timeout(err, receiver, timeout)
    }
pub fn parse_get_revoc_reg_def_response_timeout ( get_revoc_reg_def_response : & str , timeout : Duration ) -> Result < ( String , String ) , ErrorCode > { let ( receiver , command_handle , cb ) = ClosureHandler :: cb_ec_string_string ( ) ; let err = Ledger :: _parse_get_revoc_reg_def_response ( command_handle , get_revoc_reg_def_response , cb ) ; ResultHandler :: two_timeout ( err , receiver , timeout ) }
Parse a GET_REVOC_REG_DEF response to get Revocation Registry Definition in the format
compatible with Anoncreds API.
Parse a GET_REVOC_REG_DEF response to get Revocation Registry Definition in the format compatible with Anoncreds API .
Revocation Registry Definition Id and Revocation Registry Definition json.
{
"id": string - ID of the Revocation Registry,
"revocDefType": string - Revocation Registry type (only CL_ACCUM is supported for now),
"tag": string - Unique descriptive ID of the Registry,
"credDefId": string - ID of the corresponding CredentialDefinition,
"value": Registry-specific data {
"issuanceType": string - Type of Issuance(ISSUANCE_BY_DEFAULT or ISSUANCE_ON_DEMAND),
"maxCredNum": number - Maximum number of credentials the Registry can serve.
"tailsHash": string - Hash of tails.
"tailsLocation": string - Location of tails file.
"publicKeys":  - Registry's public key.
},
"ver": string - version of revocation registry definition json.
Revocation Registry Definition Id and Revocation Registry Definition json . { " id " : string - ID of the Revocation Registry " revocDefType " : string - Revocation Registry type ( only CL_ACCUM is supported for now ) " tag " : string - Unique descriptive ID of the Registry " credDefId " : string - ID of the corresponding CredentialDefinition " value " : Registry - specific data { " issuanceType " : string - Type of Issuance ( ISSUANCE_BY_DEFAULT or ISSUANCE_ON_DEMAND ) " maxCredNum " : number - Maximum number of credentials the Registry can serve . " tailsHash " : string - Hash of tails . " tailsLocation " : string - Location of tails file . " publicKeys " : - Registry ' s public key . } " ver " : string - version of revocation registry definition json .
get_revoc_reg_def_response
&str
timeout
Duration
params
`get_revoc_reg_def_response` - response of GET_REVOC_REG_DEF request.
`timeout` - the maximum time this function waits for a response
` get_revoc_reg_def_response ` - response of GET_REVOC_REG_DEF request . ` timeout ` - the maximum time this function waits for a response