Skip to content

Commit

Permalink
Remove temp solution for poseidon-lite and use the new official release
Browse files Browse the repository at this point in the history
Signed-off-by: Jim Zhang <[email protected]>
  • Loading branch information
jimthematrix committed Aug 23, 2024
1 parent 8ba1ff4 commit 4bfda8f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion zkp/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

const path = require('path');
const { readFileSync } = require('fs');
const Poseidon = require('poseidon-lite/build');
const Poseidon = require('poseidon-lite');
const { newSalt, newEncryptionNonce, poseidonDecrypt, encodeProof, getProofHash, tokenUriHash, kycHash } = require('./lib/util.js');

function loadCircuit(type) {
Expand Down
2 changes: 1 addition & 1 deletion zkp/js/lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
// limitations under the License.

const { genRandomSalt } = require('maci-crypto');
const { poseidon4: poseidon, poseidon2 } = require('poseidon-lite/build');
const { poseidon4: poseidon, poseidon2 } = require('poseidon-lite');
const { solidityPackedKeccak256 } = require('ethers');
const { createHash, randomBytes } = require('crypto');

Expand Down
2 changes: 1 addition & 1 deletion zkp/js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"dependencies": {
"ethers": "^6.13.2",
"maci-crypto": "^1.1.1",
"poseidon-lite": "git://github.com/kaleido-io/poseidon-lite.git#pre-build"
"poseidon-lite": "^0.3.0"
},
"devDependencies": {
"@iden3/js-merkletree": "^1.2.0",
Expand Down
2 changes: 1 addition & 1 deletion zkp/js/test/lib/poseidon-ex.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
const { expect } = require('chai');
const { join } = require('path');
const { wasm: wasm_tester } = require('circom_tester');
const { poseidon4 } = require('poseidon-lite/build');
const { poseidon4 } = require('poseidon-lite');

describe('PoseidonEx circuit tests', () => {
let circuit;
Expand Down
2 changes: 1 addition & 1 deletion zkp/js/test/lib/poseidon.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
const { expect } = require('chai');
const { join } = require('path');
const { wasm: wasm_tester } = require('circom_tester');
const { poseidon3 } = require('poseidon-lite/build');
const { poseidon3 } = require('poseidon-lite');

describe('Poseidon circuit tests', () => {
let circuit;
Expand Down

0 comments on commit 4bfda8f

Please sign in to comment.