diff --git a/src/crypto.ts b/src/crypto.ts index fb8308a..fd0adda 100644 --- a/src/crypto.ts +++ b/src/crypto.ts @@ -7,7 +7,7 @@ interface ReturnEncryptionWrapper { } // Returns generator that encrypts payload from the user - export function encryptStream(handshake: Handshake): ReturnEncryptionWrapper { +export function encryptStream(handshake: Handshake): ReturnEncryptionWrapper { return async function * (source) { for await (const chunk of source) { const chunkBuffer = Buffer.from(chunk);