using sha512 hash fucntion for private key