[][src]Module indyrs::anoncreds

Functions

create_revocation_state

Create revocation state for a credential in the particular time moment.

generate_nonce

Generates 80-bit numbers that can be used as a nonce for proof request.

issuer_create_and_store_credential_def

Create credential definition entity that encapsulates credentials issuer DID, credential schema, secrets used for signing credentials and secrets used for credentials revocation.

issuer_create_and_store_revoc_reg

Create a new revocation registry for the given credential definition as tuple of entities

issuer_create_credential

Check Cred Request for the given Cred Offer and issue Credential for the given Cred Request.

issuer_create_credential_offer

Create credential offer that will be used by Prover for credential request creation. Offer includes nonce and key correctness proof for authentication between protocol steps and integrity checking.

issuer_create_schema

Create credential schema entity that describes credential attributes list and allows credentials interoperability.

issuer_merge_revocation_registry_deltas

Merge two revocation registry deltas (returned by create_credential or revoke_credential) to accumulate common delta. Send common delta to ledger to reduce the load.

issuer_revoke_credential

Revoke a credential identified by a cred_revoc_id (returned by indy_issuer_create_credential).

issuer_rotate_credential_def_apply

Apply temporary keys as main for an existing Credential Definition (owned by the caller of the library).

issuer_rotate_credential_def_start

Generate temporary credential definitional keys for an existing one (owned by the caller of the library).

prover_close_credentials_search

Close credentials search (make search handle invalid)

prover_close_credentials_search_for_proof_req

Close credentials search for proof request (make search handle invalid)

prover_create_credential_req

Creates a credential request for the given credential offer.

prover_create_master_secret

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

prover_create_proof

Creates a proof according to the given proof request Either a corresponding credential with optionally revealed attributes or self-attested attribute must be provided for each requested attribute (see indy_prover_get_credentials_for_pool_req). A proof request may request multiple credentials from different schemas and different issuers. All required schemas, public keys and revocation registries must be provided. The proof request also contains nonce. The proof contains either proof or self-attested attribute value for each requested attribute.

prover_delete_credential

Deletes credential by given id.

prover_fetch_credentials

Fetch next credentials for search.

prover_fetch_credentials_for_proof_req

Fetch next credentials for the requested item using proof request search handle (created by search_credentials_for_proof_req).

prover_get_credential

Gets human readable credential by the given id.

prover_get_credential_attr_tag_policy

Get credential attribute tagging policy by credential definition id.

prover_get_credentials

Gets human readable credentials according to the filter. If filter is NULL, then all credentials are returned. Credentials can be filtered by Issuer, credential_def and/or Schema.

prover_get_credentials_for_proof_req

Gets human readable credentials matching the given proof request.

prover_search_credentials

Search for credentials stored in wallet. Credentials can be filtered by tags created during saving of credential.

prover_search_credentials_for_proof_req

Search for credentials matching the given proof request.

prover_set_credential_attr_tag_policy

Set credential attribute tagging policy. Writes a non-secret record marking attributes to tag, and optionally updates tags on existing credentials on the credential definition to match.

prover_store_credential

Check credential provided by Issuer for the given credential request, updates the credential by a master secret and stores in a secure wallet.

update_revocation_state

Create new revocation state for a credential based on existed state at the particular time moment (to reduce calculation time).

verifier_verify_proof

Verifies a proof (of multiple credential). All required schemas, public keys and revocation registries must be provided.