mirror of
https://github.com/fluencelabs/js-libp2p-noise
synced 2025-05-09 22:02:30 +00:00
9 lines
258 B
TypeScript
9 lines
258 B
TypeScript
|
import {bytes} from "./basic";
|
||
|
import {NoiseSession} from "./handshake";
|
||
|
|
||
|
export interface HandshakeInterface {
|
||
|
session: NoiseSession;
|
||
|
encrypt(plaintext: bytes, session: NoiseSession): bytes;
|
||
|
decrypt(ciphertext: bytes, session: NoiseSession): bytes;
|
||
|
}
|