mirror of
https://github.com/fluencelabs/js-libp2p-noise
synced 2025-04-26 18:02:33 +00:00
14 lines
388 B
TypeScript
14 lines
388 B
TypeScript
|
import { Duplex } from "./types/libp2p";
|
||
|
import { NoiseSession } from "./xx";
|
||
|
|
||
|
// Send encrypted payload from the user to stream
|
||
|
export async function encryptStreams(streams: Duplex, session: NoiseSession) : Promise<void> {
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
// Decrypt received payload from the stream and pipe to user
|
||
|
export async function decryptStreams(streams: Duplex, session: NoiseSession) : Promise<void> {
|
||
|
|
||
|
}
|