nazar-pc / supercop.wasm

orlp/ed25519 compiled to WebAssembly using Emscripten and optimized for small size
13 stars 4 forks source link

ed25519 decode / decompress #1

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 ?

nazar-pc commented 3 years ago

No such plans. In fact I'm working with Rust whenever possible lately so updates to this library are unlikely any time soon. If you manage to create a PR I will consider merging it and releasing a new version.

1000i100 commented 3 years ago

does the wasm is from rust binding ? if yes, there is a rust crate to decode/decompress ed25519 : curve25519_dalek https://doc.dalek.rs/curve25519_dalek/edwards/struct.CompressedEdwardsY.html#method.decompress

nazar-pc commented 3 years ago

Readme has a link to the library this WASM was compiled from. And no, it is not in Rust.