Anoncreds Credentials

Manage held Anoncreds verifiable credentials

An AnoncredsCredential is a member of the Credential union type, representing a credential which follows the Anoncreds specification. Anoncreds credentials can be managed using the same queries and mutations as for any credential.

Each Anoncreds credential is associated with a credential definition, which in turn is associated with a schema.

View Anoncreds credentials

View held Anoncreds credentials, with pagination and filtering options. Returns a nextToken which can be passed into the same query in order to fetch subsequent pages.

The AnoncredsCredential type provides the option to resolve its associated AnoncredsCredDef and AnoncredsSchema within a single operation.

query MyQuery {
  credentials(
    page: {
      nextToken: null
    }
    filter: {
      credentialFormats: [ANONCREDS]
    }
  ) {
    items {
      __typename
      ... on AnoncredsCredential {
        id
        attributes {
          name
          value
        }
        credDefId
        credDef {
          schemaId
          schema {
            name
            version
          }
          tag
        }
      }
    }
    nextToken
  }
}

Alternatively, view a single Anoncreds credential, referenced by its unique ID.

Delete an Anoncreds credential

Delete a held Anoncreds credential.

Last updated