interface · Browser and Node
WireRecord
One message on the simulated network, as an observer sees it, plus what its recipient opened.
@toip-tools/trust-coreView sourceimport { type WireRecord } from "@toip-tools/trust-core";
Declaration
interface WireRecord {
seq: number;
at: string;
from: string;
to: string;
bytes: number;
/** Hex of the last 24 bytes (ciphertext and signature). The first bytes are the cleartext TSP envelope, the same for every message. */
head: string;
raw: Uint8Array;
undelivered?: true;
opened?: { by: string; document: TrustTaskDocument<unknown> };
/** Why the recipient's TSP layer refused it, if it did. */
refused?: string;
}
Properties
seqrequirednumberatrequiredstringfromrequiredstringtorequiredstringbytesrequirednumberheadrequiredstringHex of the last 24 bytes (ciphertext and signature). The first bytes are the cleartext TSP envelope, the same for every message.
rawrequiredUint8Array<ArrayBufferLike>undeliveredoptionaltrue | undefinedopenedoptional{ by: string; document: TrustTaskDocument<unknown>; } | undefinedrefusedoptionalstring | undefinedWhy the recipient's TSP layer refused it, if it did.