Function indyrs::wallet::add_wallet_record
source · pub fn add_wallet_record(
wallet_handle: IndyHandle,
xtype: &str,
id: &str,
value: &str,
tags_json: Option<&str>
) -> Box<dyn Future<Item = (), Error = ErrorCode>>
Expand description
Create a new non-secret record in the wallet
Arguments
wallet_handle
- wallet handle (created by open_wallet)xtype
- allows to separate different record types collectionsid
- the id of recordvalue
- the value of recordtags_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