mirror of
https://github.com/fluencelabs/js-libp2p-noise
synced 2025-06-22 00:11:48 +00:00
Expose noise class
This commit is contained in:
12
test/noise.test.ts
Normal file
12
test/noise.test.ts
Normal file
@ -0,0 +1,12 @@
|
||||
import { expect } from "chai";
|
||||
import { Noise } from "../src";
|
||||
import {generateEd25519Keys} from "./utils";
|
||||
|
||||
describe("Noise", () => {
|
||||
it("should encrypt", async() => {
|
||||
const libp2pKeys = await generateEd25519Keys();
|
||||
|
||||
const noise = new Noise(libp2pKeys._key);
|
||||
await noise.encrypt();
|
||||
})
|
||||
});
|
Reference in New Issue
Block a user