toip.tools

interface · Browser and Node

TspParts

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

Declaration

TypeScriptinterface
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

senderVidrequired
string
receiverVidrequired
string
encrequired
Uint8Array<ArrayBufferLike>

The HPKE ephemeral key, 32 bytes.

ctrequired
Uint8Array<ArrayBufferLike>

The HPKE ciphertext with its 16-byte AEAD tag.

signaturerequired
Uint8Array<ArrayBufferLike>

The Ed25519 signature over envelope and ciphertext, 64 bytes.