Changed hashing, signature and key generation.
Removed logging
Testing