Skip to content

Commit 9831c96

Browse files
committed
feat: equal test
1 parent 1e9499f commit 9831c96

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/srp/littleK.test.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { BigInteger } from "jsbn";
33
import { hexToBigInt } from "../utils/hex";
44
import { knownGroups } from "./srpGroup";
55
import { bigIntToBytes } from "../utils/bigint";
6+
import assert from "assert";
67

78
const makeLittleK = (N: BigInteger, g: BigInteger) => {
89
const hash = createHash("sha256");
@@ -18,4 +19,7 @@ const k = makeLittleK(
1819
knownGroups[8192].getN(),
1920
knownGroups[8192].getGenerator()
2021
);
21-
console.log(k.toString());
22+
assert.deepStrictEqual(
23+
k.toString(),
24+
"41355140986095207529712434517822669449058164734798422081556677809506232522678"
25+
);

0 commit comments

Comments
 (0)