Set prologue to empty buffer

This commit is contained in:
Belma Gutlic
2020-01-29 19:48:14 +01:00
parent 13ba253edd
commit 3303cc3b4d
7 changed files with 10 additions and 10 deletions

View File

@ -31,7 +31,7 @@ type HandshakeParams = {
export class Noise implements INoiseConnection {
public protocol = "/noise";
private readonly prologue = Buffer.from(this.protocol);
private readonly prologue = Buffer.alloc(0);
private readonly staticKeys: KeyPair;
private readonly earlyData?: bytes;
private useNoisePipes: boolean;