chore: update @zk-kit/protocols pkg

Former-commit-id: 286bb4a7b1
This commit is contained in:
cedoor
2022-02-14 13:59:35 +01:00
parent 9944eb3746
commit a6256d2cdb
6 changed files with 13 additions and 12 deletions

View File

@@ -178,9 +178,10 @@ describe("Greeters", function () {
const message = await signers[0].signMessage("Sign this message to create your identity!")
const identity = new ZkIdentity(Strategy.MESSAGE, message)
const identityCommitment = identity.genIdentityCommitment()
const greeting = "Hello world"
const merkleProof = generateMerkleProof(20, BigInt(0), 5, identityCommitments, 0)
const merkleProof = generateMerkleProof(20, BigInt(0), 5, identityCommitments, identityCommitment)
const witness = Semaphore.genWitness(
identity.getTrapdoor(),
identity.getNullifier(),