Function libindy_sys::indy_build_nym_request [−][src]
pub unsafe extern "C" fn indy_build_nym_request(
command_handle: indy_handle_t,
submitter_did: *const c_char,
target_did: *const c_char,
verkey: *const c_char,
alias: *const c_char,
role: *const c_char,
str: indy_str_cb
) -> indy_error_t
Builds a NYM request. Request to create a new NYM record for a specific user.
#Params command_handle: command handle to map callback to caller context. submitter_did: DID of the submitter stored in secured Wallet. target_did: Target DID as base58-encoded string for 16 or 32 bit DID value. verkey: Target identity verification key as base58-encoded string. alias: NYM's alias. role: Role of a user NYM record: null (common USER) TRUSTEE STEWARD TRUST_ANCHOR empty string to reset role cb: Callback that takes command result as parameter.
#Returns Request result as json.
#Errors Common*