Expose noise class

This commit is contained in:
morrigan
2019-11-11 15:39:09 +01:00
parent b69769f8dd
commit 8cf420fd88
4 changed files with 65 additions and 4 deletions

12
test/noise.test.ts Normal file
View 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();
})
});