mirror of
https://github.com/fluencelabs/js-libp2p-noise
synced 2025-04-25 17:32:25 +00:00
15 lines
390 B
TypeScript
15 lines
390 B
TypeScript
import { expect } from "chai";
|
|
import DuplexPair from 'it-pair/duplex';
|
|
|
|
import { Noise } from "../src";
|
|
import {generateEd25519Keys} from "./utils";
|
|
|
|
describe("Noise", () => {
|
|
it("should encrypt outgoing data using secureOutbound", async() => {
|
|
const libp2pKeys = await generateEd25519Keys();
|
|
|
|
const noise = new Noise(libp2pKeys._key);
|
|
await noise.secureOutbound();
|
|
})
|
|
});
|