Skip to content

Commit

Permalink
Merge pull request #17 from torusresearch:fix/vuln
Browse files Browse the repository at this point in the history
fix all vulnerabilities
  • Loading branch information
chaitanyapotti authored Nov 22, 2024
2 parents e52ebb8 + a2839c1 commit d8f5505
Show file tree
Hide file tree
Showing 7 changed files with 4,519 additions and 5,096 deletions.
6 changes: 6 additions & 0 deletions .mocharc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"node-option": ["experimental-specifier-resolution=node", "import=tsx"],
"timeout": 0,
"exit": true,
"extension": "ts"
}
6 changes: 0 additions & 6 deletions .mocharc.yaml

This file was deleted.

9,553 changes: 4,499 additions & 5,054 deletions package-lock.json

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,24 +32,24 @@
"assert": "^2.1.0",
"bip39": "^3.1.0",
"bn.js": "^5.2.1",
"elliptic": "~6.5.6",
"elliptic": "^6.6.1",
"enc-utils": "^3.0.0",
"ethereum-cryptography": "^2.2.1",
"hash.js": "^1.1.7"
},
"devDependencies": {
"@babel/register": "^7.24.6",
"@toruslabs/eslint-config-typescript": "^3.3.1",
"@toruslabs/torus-scripts": "^6.0.1",
"@babel/register": "^7.25.9",
"@toruslabs/eslint-config-typescript": "^3.3.4",
"@toruslabs/torus-scripts": "^6.1.6",
"@types/elliptic": "^6.4.18",
"chai": "^4.3.7",
"chai": "^5.1.2",
"dotenv": "^16.4.5",
"eslint": "^8.46.0",
"husky": "^9.0.11",
"mocha": "^10.4.0",
"prettier": "^3.3.2",
"ts-node": "^10.9.2",
"typescript": "^5.4.5"
"eslint": "^8.57.0",
"husky": "^9.1.7",
"mocha": "^10.8.2",
"prettier": "^3.3.3",
"tsx": "^4.19.2",
"typescript": "^5.6.3"
},
"files": [
"dist"
Expand Down
4 changes: 1 addition & 3 deletions test/key_derivation.test.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import chai from "chai";
import { expect } from "chai";

import { getAccountPath, getKeyPairFromPath, grindKey, StarkExEc } from "../src/key_derivation";

const { expect } = chai;

const layer = "starkex";
const application = "starkdeployement";

Expand Down
18 changes: 0 additions & 18 deletions test/setup.mjs

This file was deleted.

6 changes: 2 additions & 4 deletions test/signature.test.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
/* eslint-disable @typescript-eslint/no-var-requires */
/* eslint-disable mocha/max-top-level-suites */
/* eslint-disable @typescript-eslint/no-unused-expressions */
/* eslint-disable no-unused-expressions */

import BN from "bn.js";
import chai from "chai";
import { expect } from "chai";

import { ec, maxEcdsaVal, pedersen, sign, verify } from "../src/signature";

const precomputedKeys = require("./keys_precomputed.json");
const testData = require("./signature_test_data.json");
const rfc6979TestData = require("./rfc6979_signature_test_vector.json");

const { expect } = chai;

function randomString(characters, length) {
let result = "";

Expand Down

0 comments on commit d8f5505

Please sign in to comment.