interface · Browser and Node

# Contact

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

Import:

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

## Declaration

interface:

```ts
interface Contact {
  vid: string;
  signingKey: Uint8Array;
  encryptionKey: Uint8Array;
  /** We have heard from them, so they know us: send PAIR, not INTRO. */
  introduced: boolean;
  heard?: { atMs: number; hops: number; link: string; rssi?: number };
  /** False when the contact can't read CTT1 bodies. */
  compact?: boolean;
}
```

## Properties

**`vid` (required)**

`string`

**`signingKey` (required)**

`Uint8Array<ArrayBufferLike>`

**`encryptionKey` (required)**

`Uint8Array<ArrayBufferLike>`

**`introduced` (required)**

`boolean`

We have heard from them, so they know us: send PAIR, not INTRO.

**`heard` (optional)**

`{ atMs: number; hops: number; link: string; rssi?: number; } | undefined`

**`compact` (optional)**

`boolean | undefined`

False when the contact can't read CTT1 bodies.

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