sodium-javascript icon indicating copy to clipboard operation
sodium-javascript copied to clipboard

ristretto255

Open lukeburns opened this issue 4 years ago • 2 comments

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.

lukeburns avatar Jan 05 '22 22:01 lukeburns

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.

chm-diederichs avatar Jan 05 '22 22:01 chm-diederichs

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.

lukeburns avatar Jan 06 '22 03:01 lukeburns