That last one is the wrong curve. Well ...
And another library ... https://www.npmjs.com/package/ring-crypto. I don't care too much to make it super secure for a start. I just need something to validate the idea for a nip. Without any actual crypto library, ChatGPT proposes random number generators as dummy implementations.
Discussion
Maybe checkout Cairo
Although last I checked this isn't zero knowledge, just succinct.