From 5dec52c2743b6884630581469e244b98face2032 Mon Sep 17 00:00:00 2001 From: Tuyen Nguyen Date: Wed, 3 Aug 2022 13:05:08 +0700 Subject: [PATCH] chore: correct type of it-length-prefixed 8.0.2 --- src/crypto/streaming.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crypto/streaming.ts b/src/crypto/streaming.ts index 263e0a2a..42a92930 100644 --- a/src/crypto/streaming.ts +++ b/src/crypto/streaming.ts @@ -21,7 +21,7 @@ export function encryptStream (handshake: IHandshake): Transform { } // Decrypt received payload to the user -export function decryptStream (handshake: IHandshake): Transform { +export function decryptStream (handshake: IHandshake): Transform { return async function * (source) { for await (const chunk of source) { for (let i = 0; i < chunk.length; i += NOISE_MSG_MAX_LENGTH_BYTES) {