type · Browser and Node
Packet
@toip-tools/mesh-transportView sourceimport { type Packet } from "@toip-tools/mesh-transport";
Declaration
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 };