mirror of
https://github.com/fluencelabs/js-libp2p-noise
synced 2025-06-28 07:51:35 +00:00
Set prologue to empty buffer
This commit is contained in:
@ -21,7 +21,7 @@ describe("XX Handshake", () => {
|
||||
const connectionFrom = Wrap(duplex[0]);
|
||||
const connectionTo = Wrap(duplex[1]);
|
||||
|
||||
const prologue = Buffer.from('/noise');
|
||||
const prologue = Buffer.alloc(0);
|
||||
const staticKeysInitiator = generateKeypair();
|
||||
const staticKeysResponder = generateKeypair();
|
||||
|
||||
@ -66,7 +66,7 @@ describe("XX Handshake", () => {
|
||||
const connectionFrom = Wrap(duplex[0]);
|
||||
const connectionTo = Wrap(duplex[1]);
|
||||
|
||||
const prologue = Buffer.from('/noise');
|
||||
const prologue = Buffer.alloc(0);
|
||||
const staticKeysInitiator = generateKeypair();
|
||||
const staticKeysResponder = generateKeypair();
|
||||
|
||||
@ -94,7 +94,7 @@ describe("XX Handshake", () => {
|
||||
const connectionFrom = Wrap(duplex[0]);
|
||||
const connectionTo = Wrap(duplex[1]);
|
||||
|
||||
const prologue = Buffer.from('/noise');
|
||||
const prologue = Buffer.alloc(0);
|
||||
const staticKeysInitiator = generateKeypair();
|
||||
const staticKeysResponder = generateKeypair();
|
||||
|
||||
|
Reference in New Issue
Block a user