type · Browser and Node

# Packet

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

Import:

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

## Declaration

type:

```ts
type Packet =
  | { kind: "pair"; tag: Uint8Array; enc: Uint8Array; ct: Uint8Array; signature: Uint8Array }
  | { kind: "intro"; sealedSender: Uint8Array; enc: Uint8Array; ct: Uint8Array; signature: Uint8Array }
  | { kind: "via"; gatewayHint: Uint8Array; routeBlock: Uint8Array; enc: Uint8Array; ct: Uint8Array; signature: Uint8Array }
  | { kind: "down"; tag: Uint8Array; sealedSender: Uint8Array; enc: Uint8Array; ct: Uint8Array; signature: Uint8Array }
  | { kind: "receipt"; tag: Uint8Array; pid: Uint8Array; status: 0 | 1 | 2; proof: Uint8Array }
  | { kind: "raw"; wire: Uint8Array }
  | { kind: "public"; signerHint: Uint8Array; contentType: number; body: Uint8Array; signature: Uint8Array };
```

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