-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
semaphore-0.wasm not found #804
Comments
Hey @Anas2001 Semaphore v4 does not support groups with one member. It supports groups with greater than or equal to 2 members. With one member in a group there is no anonymity, so it should be fine. Do you need support for only one member in the group because of your use case? If you add another member to the group, it should work fine. You may need to update the semaphore version to use the latest which is |
Hi @vplasencia thanks for ur replay :) I wanted only to test the protocol on back-end and front-end. Of course I want to use it for multiple memebrs but the Error message didn't show me if it required at least 2 memebers to work fine. But I fixed the issue thru adding merkleTreeDepth to generateProof-Function |
Hey @Anas2001 it's great to know that you found out how to solve it. Yes, that's another way to make it work, by passing the merkle tree depth parameter. Thank you very much for pointing this out. I just created this issue: #805 to update the documentation to add more information about anonymity in groups and update the I added the link of this issue there. Closing this issue, but feel free to add more ideas here or in the new issue. Thank you very much. |
Describe the bug
When I try to generate a proof with @semaphore-protocol/proof package I get after while an Error Error: Failed to fetch https://unpkg.com/@zk-kit/semaphore-artifacts@4.0.0-beta.11/semaphore-0.wasm: Not Found
To Reproduce
run this example
import { Identity } from "@semaphore-protocol/identity";
import { Group } from "@semaphore-protocol/group";
import { generateProof } from "@semaphore-protocol/proof";
const group = new Group();
const identity = new Identity("private_key_of_wallet");
group.addMember(identity.commitment);
const proof = await generateProof(identity, group, 1, group.root);
console.log(proof);
Expected behavior
to log the proof
Screenshots
no need for this
Technologies (please complete the following information):
Additional context
try to call this link https://unpkg.com/@zk-kit/semaphore-artifacts@4.0.0-beta.11/semaphore-0.wasm from browser and get
Cannot find "/semaphore-0.wasm" in @zk-kit/semaphore-artifacts@4.0.0-beta.11
The text was updated successfully, but these errors were encountered: