@@ -480,27 +480,34 @@ pub extern fn indy_prover_get_credential(command_handle: i32,
480480```Rust
481481/// Gets human readable credentials according to the filter.
482482/// If filter is NULL, then all credentials are returned.
483- /// Credentials can be filtered by tags created during saving of credential .
483+ /// Credentials can be filtered by Issuer, credential_def and/or Schema .
484484///
485- /// NOTE: This method is deprecated because immediately returns all fetched credentials.
485+ /// NOTE: This method is deprecated because immediately returns all fetched credentials.
486486/// Use <indy_prover_search_credentials> to fetch records by small batches.
487- ///
487+ ///
488488/// #Params
489489/// wallet_handle: wallet handler (created by open_wallet).
490- /// filter_json: Wql style filter for credentials searching based on tags.
491- /// where wql query: indy-sdk/doc/design/011-wallet-query-language/README.md
490+ /// filter_json: filter for credentials
491+ /// {
492+ /// "schema_id": string, (Optional)
493+ /// "schema_issuer_did": string, (Optional)
494+ /// "schema_name": string, (Optional)
495+ /// "schema_version": string, (Optional)
496+ /// "issuer_did": string, (Optional)
497+ /// "cred_def_id": string, (Optional)
498+ /// }
492499/// cb: Callback that takes command result as parameter.
493500///
494501/// #Returns
495- /// credentials json
496- /// [{
497- /// "referent": string, // cred_id in the wallet
498- /// "attrs": {"key1":"raw_value1", "key2":"raw_value2"},
499- /// "schema_id": string,
500- /// "cred_def_id": string,
501- /// "rev_reg_id": Optional<string>,
502- /// "cred_rev_id": Optional<string>
503- /// }]
502+ /// credentials json
503+ /// [{
504+ /// "referent": string, // cred_id in the wallet
505+ /// "attrs": {"key1":"raw_value1", "key2":"raw_value2"},
506+ /// "schema_id": string,
507+ /// "cred_def_id": string,
508+ /// "rev_reg_id": Optional<string>,
509+ /// "cred_rev_id": Optional<string>
510+ /// }]
504511///
505512/// #Errors
506513/// Annoncreds*
@@ -525,7 +532,7 @@ pub extern fn indy_prover_get_credentials(command_handle: i32,
525532///
526533/// #Params
527534/// wallet_handle: wallet handler (created by open_wallet).
528- /// filter_json : Wql style filter for credentials searching based on tags.
535+ /// query_json : Wql style filter for credentials searching based on tags.
529536/// where wql query: indy-sdk/doc/design/011-wallet-query-language/README.md
530537/// cb: Callback that takes command result as parameter.
531538///
@@ -540,7 +547,7 @@ pub extern fn indy_prover_get_credentials(command_handle: i32,
540547#[no_mangle ]
541548pub extern fn indy_prover_search_credentials (command_handle : i32 ,
542549 wallet_handle : i32 ,
543- filter_json : * const c_char ,
550+ query_json : * const c_char ,
544551 cb : Option <extern fn (
545552 xcommand_handle : i32 , err : ErrorCode ,
546553 search_handle : i32 ,
@@ -595,9 +602,9 @@ pub extern fn indy_prover_close_credentials_search(command_handle: i32,
595602
596603/// Gets human readable credentials matching the given proof request.
597604///
598- /// NOTE: This method is deprecated because immediately returns all fetched credentials.
605+ /// NOTE: This method is deprecated because immediately returns all fetched credentials.
599606/// Use <indy_prover_search_credentials_for_proof_req> to fetch records by small batches.
600- ///
607+ ///
601608/// #Params
602609/// wallet_handle: wallet handler (created by open_wallet).
603610/// proof_request_json: proof request json
@@ -618,20 +625,14 @@ pub extern fn indy_prover_close_credentials_search(command_handle: i32,
618625/// // for date in this interval for each attribute
619626/// // (can be overridden on attribute level)
620627/// }
621- /// extra_query_json:(Optional) List of extra queries that will be applied to correspondent attribute/predicate:
622- /// {
623- /// "<attr_referent>": <wql query>,
624- /// "<predicate_referent>": <wql query>,
625- /// }
626628/// cb: Callback that takes command result as parameter.
627629///
628630/// where
629- /// where wql query: indy-sdk/doc/design/011-wallet-query-language/README.md
630631/// attr_referent: Proof-request local identifier of requested attribute
631632/// attr_info: Describes requested attribute
632633/// {
633634/// "name": string, // attribute name, (case insensitive and ignore spaces)
634- /// "restrictions": Optional<wql query>,
635+ /// "restrictions": Optional<filter_json>, // see above
635636/// "non_revoked": Optional<<non_revoc_interval>>, // see below,
636637/// // If specified prover must proof non-revocation
637638/// // for date in this interval this attribute
@@ -643,7 +644,7 @@ pub extern fn indy_prover_close_credentials_search(command_handle: i32,
643644/// "name": attribute name, (case insensitive and ignore spaces)
644645/// "p_type": predicate type (Currently ">=" only)
645646/// "p_value": int predicate value
646- /// "restrictions": Optional<wql query>,
647+ /// "restrictions": Optional<filter_json>, // see above
647648/// "non_revoked": Optional<<non_revoc_interval>>, // see below,
648649/// // If specified prover must proof non-revocation
649650/// // for date in this interval this attribute
@@ -684,7 +685,6 @@ pub extern fn indy_prover_close_credentials_search(command_handle: i32,
684685pub extern fn indy_prover_get_credentials_for_proof_req (command_handle : i32 ,
685686 wallet_handle : i32 ,
686687 proof_request_json : * const c_char ,
687- extra_query_json : * const c_char ,
688688 cb : Option <extern fn (
689689 xcommand_handle : i32 , err : ErrorCode ,
690690 credentials_json : * const c_char )>) -> ErrorCode
0 commit comments