mirror of
https://github.com/fluencelabs/js-libp2p-noise
synced 2025-04-25 17:52:13 +00:00
13 lines
348 B
TypeScript
13 lines
348 B
TypeScript
import { expect } from "chai";
|
|
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();
|
|
})
|
|
});
|