Skip to content

Commit

Permalink
updated test file
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoineFONDEUR committed Dec 8, 2024
1 parent f4e5207 commit 6b6aa0e
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions src/tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,31 +108,5 @@ function testRunner() {
);
});

test("poseidon hash", (t) => {
//This test comes from : https://github.com/paulmillr/noble-curves/blob/main/test/poseidon.test.js#L88
t.equal(
poseidon(
BigInt(
"4379311784651118086770398084575492314150568148003994287303975907890254409956",
),
BigInt(
"5329163686893598957822497554130545759427567507701132391649270915797304266381",
),
),
BigInt(
"2457757238178986673695038558497063891521456354791980183317105434323761563347",
),
);
});

test("keccak", (t) => {
t.equal(
BigInt(KECCAK("hello")),
BigInt(
"0x8aff950685c2ed4bc3174f3472287b56d9517b9c948127319a09a7a36deac8",
),
); //test value comes from https://github.com/paulmillr/scure-starknet
});

test.finish();
}

0 comments on commit 6b6aa0e

Please sign in to comment.