We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 201adcb commit 45c1d56Copy full SHA for 45c1d56
src/crypto/streaming.ts
@@ -21,7 +21,7 @@ export function encryptStream (handshake: IHandshake): Transform<Uint8Array> {
21
}
22
23
// Decrypt received payload to the user
24
-export function decryptStream (handshake: IHandshake): Transform<Uint8Array|Uint8ArrayList> {
+export function decryptStream (handshake: IHandshake): Transform<Uint8ArrayList, Uint8Array> {
25
return async function * (source) {
26
for await (const chunk of source) {
27
for (let i = 0; i < chunk.length; i += NOISE_MSG_MAX_LENGTH_BYTES) {
0 commit comments