pub fn build_cred_def_request(submitter_did: &str, data: &str) -> Result<String, ErrorCode> {
        let (receiver, command_handle, cb) = ClosureHandler::cb_ec_string();

        let err = Ledger::_build_cred_def_request(command_handle, submitter_did, data, cb);

        ResultHandler::one(err, receiver)
    }
/// Builds an CRED_DEF request. Request to add a Credential Definition (in particular, public key),
/// that Issuer creates for a particular Credential Schema.
///
/// # Arguments
/// * `submitter_did` - DID of the submitter stored in secured Wallet.
/// * `data` - 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 CredDef json
/// }
///
/// # Returns
/// Request result as json.
Builds an CRED_DEF request. Request to add a Credential Definition (in particular, public key),
that Issuer creates for a particular Credential Schema.
Builds an CRED_DEF request . Request to add a Credential Definition ( in particular public key ) that Issuer creates for a particular Credential Schema .
pub fn build_cred_def_request(submitter_did: &str, data: &str) -> Result<String, ErrorCode> {
        let (receiver, command_handle, cb) = ClosureHandler::cb_ec_string();
        let err = Ledger::_build_cred_def_request(command_handle, submitter_did, data, cb);
        ResultHandler::one(err, receiver)
    }
pub fn build_cred_def_request ( submitter_did : & str , data : & str ) -> Result < String , ErrorCode > { let ( receiver , command_handle , cb ) = ClosureHandler :: cb_ec_string ( ) ; let err = Ledger :: _build_cred_def_request ( command_handle , submitter_did , data , cb ) ; ResultHandler :: one ( err , receiver ) }
Builds an CRED_DEF request.
Builds an CRED_DEF request .
Request result as json.
Request result as json .
submitter_did
&str
data
&str