You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Upon calling generateProof(), while the function returns with a valid answer, the program never exits back to the OS upon completion.
To Reproduce
This program produces the problem. Note I commented out the last two lines to identify which call is causing the issue. I'm including it for completeness.
#!/usr/bin/env node
import { Identity } from "@semaphore-protocol/identity"
import { Group } from "@semaphore-protocol/group"
import { generateProof } from "@semaphore-protocol/proof"
import { verifyProof } from "@semaphore-protocol/proof"
// Create new identities
const identity1 = new Identity()
const identity2 = new Identity()
const identity3 = new Identity()
const members = [
identity1.commitment,
identity2.commitment,
identity3.commitment
]
const group = new Group(members)
const scope = group.root
const message = "Hello, World!"
const proof = await generateProof(identity1, group, message, scope)
console.log(`Proof: ${JSON.stringify(proof)}`)
// const proofIsValid = await verifyProof(proof)
// console.log(`Proof is valid: ${proofIsValid}`)
Expected behavior
After completion of the code, the program should return back to the Operating System.
Screenshots
Here is a sample execution of the program. Note the "^C" at the end which is me forcing exit of the program which is stuck indefinitely.
Describe the bug
Upon calling generateProof(), while the function returns with a valid answer, the program never exits back to the OS upon completion.
To Reproduce
This program produces the problem. Note I commented out the last two lines to identify which call is causing the issue. I'm including it for completeness.
Expected behavior
After completion of the code, the program should return back to the Operating System.
Screenshots
Here is a sample execution of the program. Note the "^C" at the end which is me forcing exit of the program which is stuck indefinitely.
Technologies (please complete the following information):
"@semaphore-protocol/group": "^4.0.0-beta.7",
"@semaphore-protocol/identity": "^4.0.0-beta.7",
"@semaphore-protocol/proof": "^4.0.0-beta.7"
}
Additional context
The code was derived from documentation in your getting started guide here: https://docs.semaphore.pse.dev/guides/identities
The text was updated successfully, but these errors were encountered: