Skip to content
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

Porting TFHEpp to js and wasm #50

Open
Claoo opened this issue May 26, 2024 · 2 comments
Open

Porting TFHEpp to js and wasm #50

Claoo opened this issue May 26, 2024 · 2 comments

Comments

@Claoo
Copy link

Claoo commented May 26, 2024

Hello guys, great work you've done with this TFHE implementation in C++, I'm a C/C++ developer and I want to make an interface for your code and expose it to java script and WebAssembly using emscripten. Does any one has any experience regarding this building tool? I just discover it and I'll give it a try. I'll keep you posted with my progress, maybe some of you will be interested in this interface.

Happy Coding!
Claoo

@Claoo
Copy link
Author

Claoo commented May 28, 2024

Hi guys I managed to build the library as a shared library for js and wasm with some limitations, first was that I could't build randen and spqlios, assembly language is not build by emscripten. So I had to build FFTW3 library first with emscripten and after that I could build your library. I'll start some use case and fork this repository, If you are interested in my work I can make a new branch for this repo. What do you say?

@nindanaoto
Copy link
Member

Hi, Claoo. I expected such things, randen and spqlios will not be compatible with WebAssembly, and using FFTW3 in such cases seems to be a reasonable option. For the randen part, it is used to boost the secure random number generations, so I guess that you may need some other relatively fast CSPRNG on WebAssembly to avoid the use of /dev/urandom to get adequate performance.

Well, since this repository is solely developed for my research projects, I won't expect someone other than my close colleagues and me to create the branch on this repository. So, I hope you make a fork and make the PR from that forked repository.
I'm open to adding new features to this library, though I cannot guarantee that the functionalities I'm not currently using are maintained.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants