code: func encodeTemplateID(prevHash *chainhash.Hash, lastGenerated time.Time) string {
  	return fmt.Sprintf("%s-%d", prevHash.String(), lastGenerated.Unix())
  }
docs: // encodeTemplateID encodes the passed details into an ID that can be used to
  // uniquely identify a block template.