jedisct1 / libsodium.js

libsodium compiled to Webassembly and pure JavaScript, with convenient wrappers.
Other
968 stars 138 forks source link

Algorand/IOG libsodium VRF implementation for node js? #314

Closed gitmachtl closed 1 year ago

gitmachtl commented 1 year ago

Hi,

thank you for your hard work!

I am searching for a node js compatible libsodium lib, that has the signing/verification feature for VRF keys/prove included. Like Algorand and IOG is using. Does anyone know if such a lib exists, or could it be added to this one?

Thank you very much.

Best regards, Martin

jedisct1 commented 1 year ago

Try ecvrf maybe?

gitmachtl commented 1 year ago

Try ecvrf maybe?

Hi, thx for the reply. No ecvrf is using a completly different VRF implementation than the Algorand/IOG implementation. I tried it a few hours ago. Here is a link to the Algorand/IOG c lib: https://github.com/algorand/vrf/blob/main/libsodium-vanilla-wrapper/vrf.c And here is the IOG one: https://github.com/input-output-hk/libsodium/tree/draft-irtf-cfrg-vrf-03/src/libsodium/crypto_vrf/ietfdraft03

gitmachtl commented 1 year ago

Its also related to: https://github.com/jedisct1/libsodium/pull/1188

jedisct1 commented 1 year ago

As you saw here, the specification is still a work in progress.

So it's not going to be merged in libsodium until it is finalized.