js-libp2p-noise/src/@types/handshake-interface.ts

9 lines
258 B
TypeScript
Raw Normal View History

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;
}