Function libindy_sys::indy_add_wallet_record[][src]

pub unsafe extern "C" fn indy_add_wallet_record(
    command_handle: indy_handle_t,
    wallet_handle: indy_handle_t,
    type_: *const c_char,
    id: *const c_char,
    value: *const c_char,
    tags_json: *const c_char,
    cb: indy_empty_cb
) -> indy_error_t

Create a new non-secret record in the wallet

#Params command_handle: command handle to map callback to caller context wallet_handle: wallet handle (created by open_wallet) type_: allows to separate different record types collections id: the id of record value: the value of record tags_json: the record tags used for search and storing meta information as json: { "tagName1": , // string tag (will be stored encrypted) "tagName2": , // string tag (will be stored encrypted) "~tagName3": , // string tag (will be stored un-encrypted) "~tagName4": , // string tag (will be stored un-encrypted) } Note that null means no tags If tag name starts with "~" the tag will be stored un-encrypted that will allow usage of this tag in complex search queries (comparison, predicates) Encrypted tags can be searched only for exact matching