From 8b26c0bd008b034d6265808fdac2e89c560cc19f Mon Sep 17 00:00:00 2001 From: achingbrain Date: Fri, 16 Aug 2024 12:15:03 +0100 Subject: [PATCH] feat: add plaintext encryption tests Adds tests for plaintext encryption --- src/index.ts | 2 +- src/utils/test-matrix.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index f5d0e3a..3654258 100644 --- a/src/index.ts +++ b/src/index.ts @@ -58,7 +58,7 @@ export type NodeType = 'js' | 'go' export type PeerIdType = 'rsa' | 'ed25519' | 'secp256k1' export type PubSubRouter = 'gossipsub' | 'floodsub' export type Muxer = 'mplex' | 'yamux' -export type Encryption = 'noise' | 'tls' +export type Encryption = 'noise' | 'tls' | 'plaintext' export type TransportType = 'tcp' | 'webtransport' | 'webrtc-direct' export interface SpawnOptions { diff --git a/src/utils/test-matrix.ts b/src/utils/test-matrix.ts index 9d08fa3..825421b 100644 --- a/src/utils/test-matrix.ts +++ b/src/utils/test-matrix.ts @@ -8,7 +8,7 @@ export interface TestFunction { export function runTests (name: string, fn: TestFunction, factory: DaemonFactory): void { const keyTypes: PeerIdType[] = ['ed25519', 'rsa', 'secp256k1'] const impls: NodeType[] = ['js', 'go'] - const encrypters: Encryption[] = ['noise', 'tls'] + const encrypters: Encryption[] = ['noise', 'tls', 'plaintext'] const muxers: Muxer[] = ['mplex', 'yamux'] for (const keyType of keyTypes) {