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 {