mirror of
https://github.com/fluencelabs/js-libp2p-noise
synced 2025-08-01 04:22:06 +00:00
Create handshakes dir
This commit is contained in:
0
test/handshakes/ik.test.ts
Normal file
0
test/handshakes/ik.test.ts
Normal file
@@ -1,10 +1,10 @@
|
||||
import { expect, assert } from "chai";
|
||||
import { Buffer } from 'buffer';
|
||||
|
||||
import { XXHandshake } from "../src/xx";
|
||||
import { KeyPair } from "../src/@types/libp2p";
|
||||
import { generateEd25519Keys } from "./utils";
|
||||
import {createHandshakePayload, generateKeypair, getHandshakePayload} from "../src/utils";
|
||||
import { XXHandshake } from "../../src/handshakes/xx";
|
||||
import { KeyPair } from "../../src/@types/libp2p";
|
||||
import { generateEd25519Keys } from "../utils";
|
||||
import {createHandshakePayload, generateKeypair, getHandshakePayload} from "../../src/utils";
|
||||
|
||||
describe("Index", () => {
|
||||
const prologue = Buffer.from("/noise", "utf-8");
|
@@ -12,7 +12,7 @@ import {
|
||||
signPayload
|
||||
} from "../src/utils";
|
||||
import { decodeMessageBuffer, encodeMessageBuffer } from "../src/encoder";
|
||||
import {XXHandshake} from "../src/xx";
|
||||
import {XXHandshake} from "../src/handshakes/xx";
|
||||
import {Buffer} from "buffer";
|
||||
import {getKeyPairFromPeerId, getRandomBuffer} from "./utils";
|
||||
|
||||
|
Reference in New Issue
Block a user