mirror of
https://github.com/fluencelabs/js-libp2p-noise
synced 2025-06-24 00:51:48 +00:00
use libp2p keys from PeerId argument
This commit is contained in:
@ -3,7 +3,7 @@ import { Noise } from "../src";
|
||||
|
||||
describe("Index", () => {
|
||||
it("should expose class with tag and required functions", () => {
|
||||
const noise = new Noise(Buffer.from("privatekey"));
|
||||
const noise = new Noise();
|
||||
expect(noise.protocol).to.equal('/noise');
|
||||
expect(typeof(noise.secureInbound)).to.equal('function');
|
||||
expect(typeof(noise.secureOutbound)).to.equal('function');
|
||||
|
Reference in New Issue
Block a user