Skip to content

Conversation

@VolodymyrBg
Copy link
Contributor

Add a new section to the packages/proof/README.md explaining the importance of calling terminate() on the bn128 curve instance when using getCurveFromName("bn128") from the ffjavascript package. This prevents resource leaks (such as lingering MessagePort handles) and ensures Node.js processes exit cleanly, especially in test environments. Includes a usage example for proper resource management.
Fixes #318

Copy link
Member

@vplasencia vplasencia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks great! Thank you very much @VolodymyrBg!

@vplasencia vplasencia merged commit 246801e into semaphore-protocol:dev Oct 22, 2025
3 of 4 checks passed
@gitpoap-bot
Copy link

gitpoap-bot bot commented Oct 22, 2025

Congrats, your important contribution to this open-source project has earned you a GitPOAP!

GitPOAP: 2025 Semaphore Contributor:

GitPOAP: 2025 Semaphore Contributor GitPOAP Badge

Head to gitpoap.io & connect your GitHub account to mint!

Learn more about GitPOAPs here.

@vplasencia vplasencia mentioned this pull request Oct 22, 2025
6 tasks
vplasencia added a commit that referenced this pull request Oct 22, 2025
* docs(proof): add documentation on terminating the bn128 curve to prevent resource leaks (#998)

* style(proof): format code with prettier

---------

Co-authored-by: VolodymyrBg <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add documentation to explain how to terminate the bn128 curve Semaphore package leaks handles, prevents node from exiting

2 participants