interface · Browser and Node

# TspParts

`@toip-tools/mesh-transport` · [View source](https://github.com/yourbuddyconner/toip-tools/blob/main/packages/mesh-transport/src/tsp.ts#L10)

Import:

```ts
import { type TspParts } from "@toip-tools/mesh-transport";
```

## Declaration

interface:

```ts
interface TspParts {
  senderVid: string;
  receiverVid: string;
  /** The HPKE ephemeral key, 32 bytes. */
  enc: Uint8Array;
  /** The HPKE ciphertext with its 16-byte AEAD tag. */
  ct: Uint8Array;
  /** The Ed25519 signature over envelope and ciphertext, 64 bytes. */
  signature: Uint8Array;
}
```

## Properties

**`senderVid` (required)**

`string`

**`receiverVid` (required)**

`string`

**`enc` (required)**

`Uint8Array<ArrayBufferLike>`

The HPKE ephemeral key, 32 bytes.

**`ct` (required)**

`Uint8Array<ArrayBufferLike>`

The HPKE ciphertext with its 16-byte AEAD tag.

**`signature` (required)**

`Uint8Array<ArrayBufferLike>`

The Ed25519 signature over envelope and ciphertext, 64 bytes.

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

---

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