Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmurdoch committed Apr 27, 2022
1 parent 5886cae commit 35a2c11
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -343,15 +343,15 @@ describe("api", () => {
// sanity test. the small key doesn't trigger the secp256k1 upper
// limit
const smallKey = makeKeys(
"0xfffffffffffffffffffffffffffffffebaaedce4"
"0xfffffffffffffffffffffffffffffffebaaedce5"
);
assert.strictEqual(smallKey.pk, smallKey.naivePk);
assert(smallKey.pk <= SECP256K1_MAX_PRIVATE_KEY);

// this is first (smallest) key that will trigger the secp256k1 upper
// limit code path
const largeKey = makeKeys(
"0xfffffffffffffffffffffffffffffffebaaedce5"
"0xfffffffffffffffffffffffffffffffebaaedce6"
);
assert.notStrictEqual(largeKey.pk, largeKey.naivePk);
assert(largeKey.pk <= SECP256K1_MAX_PRIVATE_KEY);
Expand Down

0 comments on commit 35a2c11

Please sign in to comment.