Work with privateKey and publicKey