Skip to content

docs(proof): add documentation on terminating the bn128 curve to prevent resource leaks #998

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

VolodymyrBg
Copy link

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

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.

Semaphore package leaks handles, prevents node from exiting
1 participant