paixaop / node-sodium

Port of the lib sodium encryption library to Node.js
MIT License
351 stars 126 forks source link

ed25519 decode / decompress #167

Open 1000i100 opened 3 years ago

1000i100 commented 3 years ago

I have ed25519 pubkeys. I would like to check there validity. The RFC say how to do that by decoding/decompressing to an x,y point : https://tools.ietf.org/html/rfc8032#page-11

Do y plan to add this to this lib ?

jedisct1 commented 3 years ago

This is unconditionally and automatically done every time you use them.

In the public APIs, keys are always compressed as a single coordinate + the sign of the other one. So, recovering the second coordinate is necessary. Applications don't have to do anything.