MCPcopy
hub / github.com/OpenNHP/opennhp / INHPHeader

Interface INHPHeader

endpoints/js-agent/src/protocol/header.ts:27–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25 * Base interface for NHP headers
26 */
27export interface INHPHeader {
28 readonly size: number;
29 typeAndPayloadSize: TypeAndPayloadSize;
30 version: ProtocolVersion;
31 flags: HeaderFlags;
32 counter: bigint;
33 readonly nonce: Uint8Array;
34 ephemeral: Uint8Array;
35 // Identity is read-only on this SDK because we don't support IBC mode;
36 // see NHPHeader.identity comment.
37 readonly identity: Uint8Array;
38 static: Uint8Array;
39 timestamp: Uint8Array;
40 hmac: Uint8Array;
41 readonly bytes: Uint8Array;
42}
43
44/**
45 * Standard NHP Header (240 bytes) for X25519 cipher scheme

Callers

nothing calls this directly

Implementers 2

NHPHeaderendpoints/js-agent/src/protocol/header
NHPHeaderExendpoints/js-agent/src/protocol/header

Calls

no outgoing calls

Tested by

no test coverage detected