code: func CommitEntry(e *Entry, ec *ECAddress) (string, error) {
  	type commitResponse struct {
  		Message string `json:"message"`
  		TxID    string `json:"txid"`
  	}
  
  	req, err := ComposeEntryCommit(e, ec)
  	if err != nil {
  		return "", err
  	}
  
  	resp, err := factomdRequest(req)
  	if err != nil {
  		return "", err
  	}
  
  	if resp.Error != nil {
  		return "", resp.Error
  	}
  	r := new(commitResponse)
  	if err := json.Unmarshal(resp.JSONResult(), r); err != nil {
  		return "", err
  	}
  
  	return r.TxID, nil
  }
docs: // CommitEntry sends the signed Entry Hash and the Entry Credit public key to
  // the factom network. Once the payment is verified and the network is commited
  // to publishing the Entry it may be published with a call to RevealEntry.