Replies: 6 comments
-
I'm guessing you're referring to the
I'm not super familiar with the low-level functions, but if you are willing to share what your application is trying to accomplish, we might be able to help you figure out a good way to achieve what you want using higher-level functions or libraries. |
Beta Was this translation helpful? Give feedback.
-
First of all, appreciate your support @CMEONE . I want to build a simple zero-knowledge proof by nacl apis, which is very lightweight and fast. So to implement a homomorphic addition, I would like to know how to use |
Beta Was this translation helpful? Give feedback.
-
Haha I don't think I've ever heard "simple" and "zero-knowledge proof" used next to each other! If you're looking into homomorphic encryption, I'm not sure that TweetNaCl is the best library for that, especially if you're trying to use undocumented, low-level functions for it (these functions should be avoided if at all possible, and the only reason that they have not been removed from the public API interface is because of backwards compatibility). Perhaps this list of homomorphic encryption libraries might help you find a library with a high-level interface for what you want to do, also you may want to take a look at a JS/WASM port of Microsoft SEAL. |
Beta Was this translation helpful? Give feedback.
-
@CMEONE Oh, actually I need to implement my owned zk solution, which is novel. The things I would like to inherit from |
Beta Was this translation helpful? Give feedback.
-
Ah ok, @dchest may be able to provide further guidance on how best to use the internal functions and which ones are the right ones for your use case, although I will note that "cooking your own crypto" is generally frowned upon, so you should ensure that your novel zk solution is being designed by highly experienced cryptographers and is well tested and audited before being used in a production environment. |
Beta Was this translation helpful? Give feedback.
-
haha for sure, thank you so much @CMEONE 😊🙏 |
Beta Was this translation helpful? Give feedback.
-
I would like to add 2 public keys and found an
add
function in tweetnacl. Unfortunately, there is no docs or comments on that function for people to understand how to use it. Really appreciate if anyone could guide me.Beta Was this translation helpful? Give feedback.
All reactions