interface · Browser and Node

# Identity

One agent's keys. The X25519 encryption key is derived from the Ed25519 key, as the P2P Trust Stack does.

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

Import:

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

## Declaration

interface:

```ts
interface Identity {
  did: string;
  signingSecret: Uint8Array;
  signingPublic: Uint8Array;
  encryptionSecret: Uint8Array;
  encryptionPublic: Uint8Array;
  signer: Signer;
}
```

## Properties

- **`did` (required)**: `string`
- **`signingSecret` (required)**: `Uint8Array<ArrayBufferLike>`
- **`signingPublic` (required)**: `Uint8Array<ArrayBufferLike>`
- **`encryptionSecret` (required)**: `Uint8Array<ArrayBufferLike>`
- **`encryptionPublic` (required)**: `Uint8Array<ArrayBufferLike>`
- **`signer` (required)**: `Signer`

[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/Identity/. An index of the documentation for AI assistants is at https://toip.tools/llms.txt.
