Create handshakes dir

This commit is contained in:
Belma Gutlic
2019-12-24 20:45:48 +01:00
parent 36a66c59da
commit e66ee7d677
7 changed files with 10 additions and 10 deletions

View File

View 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");

View File

@@ -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";