Skip to content

Commit

Permalink
fix: correct type of it-length-prefixed 8.0.2 (#178)
Browse files Browse the repository at this point in the history
chore: correct type of it-length-prefixed 8.0.2
  • Loading branch information
twoeths authored Aug 3, 2022
1 parent 201adcb commit 45c1d56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/crypto/streaming.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export function encryptStream (handshake: IHandshake): Transform<Uint8Array> {
}

// Decrypt received payload to the user
export function decryptStream (handshake: IHandshake): Transform<Uint8Array|Uint8ArrayList> {
export function decryptStream (handshake: IHandshake): Transform<Uint8ArrayList, Uint8Array> {
return async function * (source) {
for await (const chunk of source) {
for (let i = 0; i < chunk.length; i += NOISE_MSG_MAX_LENGTH_BYTES) {
Expand Down

0 comments on commit 45c1d56

Please sign in to comment.