mirror of
https://github.com/fluencelabs/js-libp2p-noise
synced 2025-07-14 21:01:53 +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;
|
||
|
}
|