xlab-si / emmy

Library for zero-knowledge proof based applications (like anonymous credentials)
Apache License 2.0
233 stars 54 forks source link

Clean up CSPaillier #105

Closed mancabizjak closed 6 years ago

mancabizjak commented 6 years ago

This commit removes unnecessary methods/functions related to CS Paillier encryption that used files as input. Specifically:

Test code no longer reads/writes to/from files in client/testdata, and is thus simpler and faster.

As a consequence, I also removed storage package, which contained only functions for reading/writing bytes from files (used only by CS Paillier code that was removed here).

The library will probably support some kind of storage interfaces in the near future (TBD). But in any case, I believe that crypto primitives really shouldn't be concerned with serialization/deserialization and storage of crypto keys and parameters - such implementations should be left to the caller.