Skip to content

Commit 0e3e6c5

Browse files
authored
fix(wasm-mps): fix redpallas DKG round 2 invalid message prefix tests
1 parent 2c267f0 commit 0e3e6c5

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

packages/wasm-mps/test/mps.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -670,17 +670,19 @@ describe("mps", function () {
670670
mps.redpallas_dkg_round2_process(
671671
otherIndices[i].map((i) => Buffer.from(results2[i].msg).slice(messagePrefix.length)),
672672
results2[i].state,
673+
crypto.randomBytes(32),
673674
),
674675
);
675676
shouldThrow(() =>
676677
mps.redpallas_dkg_round2_process(
677678
otherIndices[i].map((i) =>
678679
Buffer.concat([
679680
Buffer.from("mps-redpallas-dkg-round3-message$"),
680-
Buffer.from(results1[i].msg).slice(messagePrefix.length),
681+
Buffer.from(results2[i].msg).slice(messagePrefix.length),
681682
]),
682683
),
683-
results1[i].state,
684+
results2[i].state,
685+
crypto.randomBytes(32),
684686
),
685687
);
686688
}

0 commit comments

Comments
 (0)