Skip to content

Commit

Permalink
chore(dependencies): update project dependencies and remove redundant…
Browse files Browse the repository at this point in the history
… ones
  • Loading branch information
ctrlc03 committed Jan 9, 2024
1 parent 85dc6fc commit 4c5ac27
Show file tree
Hide file tree
Showing 16 changed files with 34,372 additions and 12,981 deletions.
710 changes: 375 additions & 335 deletions circuits/package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion circuits/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"maci-core": "^1.1.2",
"maci-crypto": "^1.1.2",
"maci-domainobjs": "^1.1.2",
"snarkjs": "^0.5.0"
"snarkjs": "^0.7.2"
},
"devDependencies": {
"@types/chai": "^4.3.11",
Expand Down
11,704 changes: 7,650 additions & 4,054 deletions cli/package-lock.json

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
"maci-crypto": "^1.1.2",
"maci-domainobjs": "^1.1.2",
"prompt": "^1.3.0",
"snarkjs": "^0.5.0",
"zkey-manager": "^0.1.1"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion cli/ts/commands/genProofs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { Keypair, PrivKey } from "maci-domainobjs";
import fs from "fs";
import path from "path";

import type { ISnarkJSVerificationKey } from "snarkjs";
import type { ISnarkJSVerificationKey } from "../utils/interfaces";

import {
DEFAULT_ETH_PROVIDER,
Expand Down
15 changes: 15 additions & 0 deletions cli/ts/utils/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,3 +125,18 @@ export interface Proof {
circuitInputs: CircuitInputs;
publicInputs: PublicSignals;
}

// snark js related interfaces
export type BigNumberish = number | string | bigint;

export interface ISnarkJSVerificationKey {
protocol: BigNumberish;
curve: BigNumberish;
nPublic: BigNumberish;
vk_alpha_1: BigNumberish[];
vk_beta_2: BigNumberish[][];
vk_gamma_2: BigNumberish[][];
vk_delta_2: BigNumberish[][];
vk_alphabeta_12: BigNumberish[][][];
IC: BigNumberish[][];
}
Loading

0 comments on commit 4c5ac27

Please sign in to comment.