bugfix in encryption key computing, added new feature: derived public keys