Files
paseo/packages/relay/src/index.ts
T
Mohamed Boudra 793b16c0df fix(relay): protect sessions against replayed commands (#7610)
Protect relay sessions against replayed commands with authenticated Noise NK negotiation, ordered records, and identity-bound security pins. Preserve legacy admission during migration and add daemon enforcement policy.

All 21 CI checks passed. General engineering review is complete; specialist cryptographic review of the handwritten Noise implementation and static-key reuse remains required before release or deployment.

Closes #359
2026-10-22 19:50:06 +07:00

21 lines
537 B
TypeScript

export type { ConnectionRole, RelaySessionAttachment } from "./types.js";
export {
generateKeyPair,
exportPublicKey,
importPublicKey,
deriveSharedKey,
encrypt,
decrypt,
} from "./crypto.js";
export {
base64EncryptedWireByteLength,
createClientChannel,
createDaemonChannel,
EncryptedChannel,
maxBase64EncryptedPlaintextByteLength,
} from "./encrypted-channel.js";
export { maxSecuredPlaintextByteLength } from "./secure-channel.js";
export type { Transport, EncryptedChannelEvents } from "./encrypted-channel.js";