Move handshake types to separate file

This commit is contained in:
Belma Gutlic
2019-12-24 20:54:45 +01:00
parent e66ee7d677
commit dbbf579288
4 changed files with 44 additions and 38 deletions

View File

@ -1,8 +1,9 @@
import { Buffer } from "buffer";
import { bytes, bytes32 } from "./@types/basic";
import { NoiseSession, XXHandshake } from "./handshakes/xx";
import { XXHandshake } from "./handshakes/xx";
import { KeyPair, PeerId } from "./@types/libp2p";
import { bytes, bytes32 } from "./@types/basic";
import { NoiseSession } from "./@types/handshake";
import {
createHandshakePayload,
getHandshakePayload,