Skip to content

Commit 1a4a7f3

Browse files
committed
chore: replace circomlibjs with poseidon-lite
Former-commit-id: df6ce17
1 parent 3d6c24a commit 1a4a7f3

File tree

7 files changed

+6
-7
lines changed

7 files changed

+6
-7
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@
5353
"@typescript-eslint/eslint-plugin": "^5.9.1",
5454
"@typescript-eslint/parser": "^5.9.1",
5555
"babel-jest": "^27.4.6",
56-
"circomlibjs": "^0.0.8",
5756
"commitizen": "^4.2.4",
5857
"cz-conventional-changelog": "^3.3.0",
5958
"dotenv": "^16.0.2",

packages/group/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@
3636
},
3737
"dependencies": {
3838
"@zk-kit/incremental-merkle-tree": "1.0.0",
39-
"circomlibjs": "0.0.8"
39+
"poseidon-lite": "^0.0.2"
4040
}
4141
}

packages/group/src/group.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { IncrementalMerkleTree, MerkleProof } from "@zk-kit/incremental-merkle-tree"
2-
import { poseidon } from "circomlibjs"
2+
import poseidon from "poseidon-lite"
33
import { Member } from "./types"
44

55
export default class Group {

packages/identity/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@
3939
"@ethersproject/random": "^5.5.1",
4040
"@ethersproject/sha2": "^5.6.1",
4141
"@ethersproject/strings": "^5.6.1",
42-
"circomlibjs": "0.0.8"
42+
"poseidon-lite": "^0.0.2"
4343
}
4444
}

packages/identity/src/identity.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { BigNumber } from "@ethersproject/bignumber"
2-
import { poseidon } from "circomlibjs"
2+
import poseidon from "poseidon-lite"
33
import checkParameter from "./checkParameter"
44
import { generateCommitment, genRandomNumber, isJsonArray, sha256 } from "./utils"
55

packages/identity/src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { BigNumber } from "@ethersproject/bignumber"
22
import { randomBytes } from "@ethersproject/random"
33
import { sha256 as _sha256 } from "@ethersproject/sha2"
44
import { toUtf8Bytes } from "@ethersproject/strings"
5-
import { poseidon } from "circomlibjs"
5+
import poseidon from "poseidon-lite"
66

77
/**
88
* Returns an hexadecimal sha256 hash of the message passed as parameter.

yarn.lock.REMOVED.git-id

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8410e46daedf2e3de829e195ab085519f877beab
1+
ade939691dcd569b1afd17037512c05544cb453a

0 commit comments

Comments
 (0)