toip.tools

interface · Browser and Node

Contact

@toip-tools/mesh-transportView source
TypeScriptImport
import { type Contact } from "@toip-tools/mesh-transport";

Declaration

TypeScriptinterface
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

vidrequired
string
signingKeyrequired
Uint8Array<ArrayBufferLike>
encryptionKeyrequired
Uint8Array<ArrayBufferLike>
introducedrequired
boolean

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

heardoptional
{ atMs: number; hops: number; link: string; rssi?: number; } | undefined
compactoptional
boolean | undefined

False when the contact can't read CTT1 bodies.