Fix minor typo in key.cpp comment

Function to generate public key is described as generating private key.