@chainsafe/libp2p-noise
Advanced tools
Comparing version 7.0.2 to 7.0.3
@@ -5,3 +5,3 @@ import type { Transform } from 'it-stream-types'; | ||
export declare function encryptStream(handshake: IHandshake): Transform<Uint8Array>; | ||
export declare function decryptStream(handshake: IHandshake): Transform<Uint8Array | Uint8ArrayList>; | ||
export declare function decryptStream(handshake: IHandshake): Transform<Uint8ArrayList, Uint8Array>; | ||
//# sourceMappingURL=streaming.d.ts.map |
{ | ||
"name": "@chainsafe/libp2p-noise", | ||
"version": "7.0.2", | ||
"version": "7.0.3", | ||
"author": "ChainSafe <info@chainsafe.io>", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0 OR MIT", |
@@ -24,3 +24,3 @@ import type { Transform } from 'it-stream-types' | ||
// 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) { | ||
@@ -27,0 +27,0 @@ for await (const chunk of source) { |
Sorry, the diff of this file is not supported yet