Skip to content

Commit

Permalink
fix impact of test constants names alligning
Browse files Browse the repository at this point in the history
  • Loading branch information
skaunov committed Oct 20, 2023
1 parent ccf7775 commit 9f3cde3
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions javascript/test/signals.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {
hashMPk,
nullifier,
hashMPkPowR,
gPowR,
hashedToCurveR,
rPoint,
c_v1,
s_v1,
c_v2,
Expand Down Expand Up @@ -36,17 +36,17 @@ describe("signals", () => {
});
describe("Plume V1", () => {
it("generates c and intermediate values correctly", () => {
expect(hashMPkPowR.x.toString(16)).toEqual(
expect(hashedToCurveR.x.toString(16)).toEqual(
"6d017c6f63c59fa7a5b1e9a654e27d2869579f4d152131db270558fccd27b97c"
);
expect(hashMPkPowR.y.toString(16)).toEqual(
expect(hashedToCurveR.y.toString(16)).toEqual(
"586c43fb5c99818c564a8f80a88a65f83e3f44d3c6caf5a1a4e290b777ac56ed"
);

expect(gPowR.x.toString(16)).toEqual(
expect(rPoint.x.toString(16)).toEqual(
"9d8ca4350e7e2ad27abc6d2a281365818076662962a28429590e2dc736fe9804"
);
expect(gPowR.y.toString(16)).toEqual(
expect(rPoint.y.toString(16)).toEqual(
"ff08c30b8afd4e854623c835d9c3aac6bcebe45112472d9b9054816a7670c5a1"
);

Expand Down Expand Up @@ -98,17 +98,17 @@ describe("signals", () => {

describe("Plume V2", () => {
it("generates c and intermediate values correctly", () => {
expect(hashMPkPowR.x.toString(16)).toEqual(
expect(hashedToCurveR.x.toString(16)).toEqual(
"6d017c6f63c59fa7a5b1e9a654e27d2869579f4d152131db270558fccd27b97c"
);
expect(hashMPkPowR.y.toString(16)).toEqual(
expect(hashedToCurveR.y.toString(16)).toEqual(
"586c43fb5c99818c564a8f80a88a65f83e3f44d3c6caf5a1a4e290b777ac56ed"
);

expect(gPowR.x.toString(16)).toEqual(
expect(rPoint.x.toString(16)).toEqual(
"9d8ca4350e7e2ad27abc6d2a281365818076662962a28429590e2dc736fe9804"
);
expect(gPowR.y.toString(16)).toEqual(
expect(rPoint.y.toString(16)).toEqual(
"ff08c30b8afd4e854623c835d9c3aac6bcebe45112472d9b9054816a7670c5a1"
);

Expand Down

0 comments on commit 9f3cde3

Please sign in to comment.