xlab-si / emmy

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

Add keypair generation functions for pseudonym system #71

Closed mancabizjak closed 6 years ago

mancabizjak commented 6 years ago

This commit adds functions for generation of key pairs to be used with pseudonym system scheme (both EC and modular version). Currently these functions are unused, as server-side relies on using fixed values that are loaded from config, so using these functions in test code breaks the tests.

These functions are for future convenience - when configuration of cryptographic parameters is improved, these functions will be called during the initial setup of pseudonym system CA and organizations.

In addition, I plan to implement structs SecKey, PubKey and PubKeyEC shortly, so I added two TODOs above new function definitions, since the planned change will affect their return values.