-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ursa EOL #203
Comments
Would moving to openssl resolve some of the issues around anoncreds being slow in WASM? |
No, that would need to be done in The person behind libsodium has openssl working for WASM, https://github.com/jedisct1/openssl-wasm, but I am not sure about the build process of including this into rusts openssl-src/sys package so we can use it. And possibly it is not even faster to use openssl-wasm instead of a pure rust as AFAIK the openssl version is quite faster because half of the big number implementation of openssl is done in assembly. Which would then be done with some polyfill / pure webassembly and I am not aware of any benchmarks between them. |
I believe that should be the only (direct) dependency needed. If you're using the big number support directly then we may have to check that it's exposed. The 'native' backend currently uses glass-pumpkin, but the prime generation is too slow to be practical (last I checked). A recent alternative might be crypto-primes but I haven't benchmarked that yet. There is also num-bigint-dig. |
Ursa has been moved to EOL status. This means that Anoncreds-rs has to move away from this library as it will not be updated or will get any security fixes.
There is some ongoing work for extracting the work, most notably for this library is anoncreds-clsignatures.
Looking at the codebase, with
rg --pcre2 'ursa(?!::cl).*' .
shows only some dependencyUrsa::bn
, which can be replaced with openssl (native depencency) / BigNum (pure rust). Everything else, which is in thecl
package fromUrsa
should be moved to theanoncreds-clsignatures-rs
repository, AFAIK.If this is the only work, moving away form Ursa would be rather easy as long as anoncreds-clsignatures is finished.
@andrewwhitehead Do see any additional work or is really almost everything covered by
anoncreds-clsignatures
?The text was updated successfully, but these errors were encountered: