Skip to content

Commit

Permalink
feat: add plaintext encryption tests (#158)
Browse files Browse the repository at this point in the history
Adds tests for plaintext encryption
  • Loading branch information
achingbrain authored Aug 16, 2024
1 parent 9d901ad commit e54a851
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/test-matrix.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e54a851

Please sign in to comment.