ristretto255
Haven't gotten around to tests yet, and this is currently using ristretto255 as a dependency, which may or may not be desired, but wanted to open for discussion and invite others to contribute.
Nice work so far!
Having ristretto255 as a dependency probably isn't a solution, since that is built on TweetNaCl.js and we should avoid depending on another libsodium port.
So for the time being, maybe you could make the work here into a standalone sodium-ristretto module that can be used alongside this library. Meanwhile, we can look into a standalone implementation suitable for this library.
They're just pulling in the low level utils used as TweetNaCl, the same as sodium-javascript. Sodium-javascript just hard coded directly (looks like internals are a direct copy paste from TweetNaCl). Might be worth abstracting out a standalone library for this that sodium-javascript and ristretto255 can use (this would reduce the size of their library). Alternatively, we could reimplement ristretto255, but this seems a bit wasteful.