Function libindy_sys::indy_prover_create_master_secret[][src]

pub unsafe extern "C" fn indy_prover_create_master_secret(
    command_handle: indy_handle_t,
    wallet_handle: indy_handle_t,
    master_secret_id: *const c_char,
    cb: indy_str_cb
) -> indy_error_t

Creates a master secret with a given id and stores it in the wallet. The id must be unique.

#Params wallet_handle: wallet handler (created by open_wallet). command_handle: command handle to map callback to user context. master_secret_id: (optional, if not present random one will be generated) new master id

#Returns out_master_secret_id: Id of generated master secret

#Errors Annoncreds* Common* Wallet*