You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
303 B

5 years ago
  1. package main
  2. import (
  3. "fmt"
  4. "net/http"
  5. )
  6. func handlePurchase(w http.ResponseWriter, r *http.Request) {
  7. challenge, err := generateChallenge(20)
  8. if err != nil {
  9. panic(err)
  10. return
  11. }
  12. fmt.Fprintf(w, challenge)
  13. }
  14. func handleTxId(w http.ResponseWriter, r *http.Request) {
  15. fmt.Fprintf(w, "ack")
  16. }