code: func validatePrivateKey(k *ecdsa.PrivateKey) bool {
  	if k == nil || k.D == nil || k.D.Sign() == 0 {
  		return false
  	}
  	return ValidatePublicKey(&k.PublicKey)
  }
docs: // validatePrivateKey checks the format of the given private key.