From c4212027d0355b17be2351b18c9dfc1bf914ec2b Mon Sep 17 00:00:00 2001 From: Matija Petrunic Date: Fri, 10 Apr 2020 13:39:55 +0200 Subject: [PATCH] Remove unused imports --- src/constants.ts | 1 + src/utils.ts | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/constants.ts b/src/constants.ts index 46d7aca..cfb43a0 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -3,3 +3,4 @@ export const NOISE_MSG_MAX_LENGTH_BYTES_WITHOUT_TAG = NOISE_MSG_MAX_LENGTH_BYTES export const DUMP_SESSION_KEYS = true; + diff --git a/src/utils.ts b/src/utils.ts index 0301e96..f142714 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -6,8 +6,6 @@ import {KeyPair} from "./@types/libp2p"; import {bytes, bytes32} from "./@types/basic"; import {Hkdf, INoisePayload} from "./@types/handshake"; import {pb} from "./proto/payload"; -import {sessionKeyLogger} from "./logger" -import {DUMP_SESSION_KEYS} from "./constants" const NoiseHandshakePayloadProto = pb.NoiseHandshakePayload; @@ -49,7 +47,7 @@ export async function createHandshakePayload( }); return Buffer.from(NoiseHandshakePayloadProto.encode(payloadInit).finish()); -} +} export async function signPayload(peerId: PeerId, payload: bytes): Promise {