* Add 2 functionbs for key generation * Move common part of proxy functions to cpp_function decorator