Added priv / pub key generation on sharing, when needed