From cca8b362cbf3bb211c17c9a84835c33371b2f1c3 Mon Sep 17 00:00:00 2001 From: Belma Gutlic Date: Tue, 21 Jan 2020 11:20:00 +0100 Subject: [PATCH] Address PR comment --- src/noise.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/noise.ts b/src/noise.ts index 7d88c73..d40f2d3 100644 --- a/src/noise.ts +++ b/src/noise.ts @@ -113,15 +113,15 @@ export class Noise implements INoiseConnection { if (this.useNoisePipes && remoteStaticKey) { // Try IK first const { remotePeer, connection, isInitiator } = params; - const IKhandshake = new IKHandshake(isInitiator, payload, this.prologue, this.staticKeys, connection, remotePeer, remoteStaticKey); + const ikHandshake = new IKHandshake(isInitiator, payload, this.prologue, this.staticKeys, connection, remotePeer, remoteStaticKey); try { - return await this.performIKHandshake(IKhandshake); + return await this.performIKHandshake(ikHandshake); } catch (e) { // IK failed, go to XX fallback let ephemeralKeys; if (params.isInitiator) { - ephemeralKeys = IKhandshake.getRemoteEphemeralKeys(); + ephemeralKeys = ikHandshake.getRemoteEphemeralKeys(); } return await this.performXXFallbackHandshake(params, payload, e.initialMsg, ephemeralKeys); }