interface · Browser and Node

# Credential

`@toip-tools/trust-core` · [View source](https://github.com/yourbuddyconner/toip-tools/blob/main/packages/trust-core/src/credentials.ts#L12)

Import:

```ts
import { type Credential } from "@toip-tools/trust-core";
```

## Declaration

interface:

```ts
interface Credential {
  "@context": string[];
  id: string;
  type: string[];
  issuer: string;
  validFrom: string;
  validUntil?: string;
  credentialSubject: { id: string; [k: string]: unknown };
  credentialStatus?: { type: "BitstringStatusListEntry"; statusListIndex: number; statusListCredential: string };
  proof?: Proof;
}
```

## Properties

- **`@context` (required)**: `string[]`
- **`id` (required)**: `string`
- **`type` (required)**: `string[]`
- **`issuer` (required)**: `string`
- **`validFrom` (required)**: `string`
- **`validUntil` (optional)**: `string | undefined`
- **`credentialSubject` (required)**: `{ [k: string]: unknown; id: string; }`
- **`credentialStatus` (optional)**: `{ type: "BitstringStatusListEntry"; statusListIndex: number; statusListCredential: string; } | undefined`
- **`proof` (optional)**: `Proof | undefined`

[Usage guide](https://toip.tools/toolkit/trust-core/#usage) · [Error handling](https://toip.tools/toolkit/trust-core/#errors) · [All exports](https://toip.tools/toolkit/trust-core/api/)

---

This is the Markdown version of https://toip.tools/toolkit/trust-core/api/Credential/. An index of the documentation for AI assistants is at https://toip.tools/llms.txt.
