Comments (3)
Would moving to openssl resolve some of the issues around anoncreds being slow in WASM?
from anoncreds-rs.
Would moving to openssl resolve some of the issues around anoncreds being slow in WASM?
No, that would need to be done in anoncreds-clsignatures
as it is slow because of generating some 1024 bit safe primes for the credential definition.
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.
from anoncreds-rs.
@andrewwhitehead Do see any additional work or is really almost everything covered by
anoncreds-clsignatures
?
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.
from anoncreds-rs.
Related Issues (20)
- Look into WASM support HOT 8
- Add example application to the React Native wrapper for anoncreds
- Can't build project HOT 1
- Remove unused methods and models
- Correctly transform jsi value to `ByteBuffer`
- Credential Request Entropy HOT 5
- Generate binary for linux-aarch64 HOT 1
- Usage of timestamp override HOT 2
- [Bug] Python Wrapper LinkSecret Invalid object handle HOT 3
- Instead of having iOS XC framework, making it a universal XC Framework HOT 2
- Zeroing the Link Secret HOT 1
- Installation issue on windows HOT 11
- 'anoncreds.h' file not found with <angled> include; use "quotes" instead HOT 7
- `tailsLocation` is pulling double duty HOT 6
- Update object finalizers and add keepalives - from indy-shared-rs HOT 1
- Replace the current ursa dependency with AnonCreds clsignatures HOT 2
- Full revocation status list is actually required for revocable credential issuance? HOT 3
- Update JS wrapper HOT 1
- Strings not freed in the JS wrapper? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from anoncreds-rs.