ecx: check for errors creating public keys from private ones.