func ListAuthKeys(w http.ResponseWriter, req *http.Request) {
	h, err := hash.NewFromHash(mux.Vars(req)["addr"])
	if err != nil {
		httputils.ErrorOut(w, http.StatusNotFound, accountNotFound)
		return
	}

	repo := container.Instance.GetAuthKeyRepo()
	keys, err := repo.FetchByHash(h.String())
	if err != nil {
		msg := fmt.Sprintf("error while retrieving authn keys: %s", err)
		httputils.ErrorOut(w, http.StatusInternalServerError, msg)
		return
	}

	// Output key
	_ = httputils.JSONOut(w, http.StatusOK, keys)
}
// ListAuthKeys returns a list of all keys for the given account
ListAuthKeys returns a list of all keys for the given account
// ListAuthKeys returns a list of all keys for the given account
func ListAuthKeys(w http.ResponseWriter, req *http.Request) {
	h, err := hash.NewFromHash(mux.Vars(req)["addr"])
	if err != nil {
		httputils.ErrorOut(w, http.StatusNotFound, accountNotFound)
		return
	}
	repo := container.Instance.GetAuthKeyRepo()
	keys, err := repo.FetchByHash(h.String())
	if err != nil {
		msg := fmt.Sprintf("error while retrieving authn keys: %s", err)
		httputils.ErrorOut(w, http.StatusInternalServerError, msg)
		return
	}
	_ = httputils.JSONOut(w, http.StatusOK, keys)
}
func ListAuthKeys ( w http . ResponseWriter , req * http . Request ) { h , err := hash . NewFromHash ( mux . Vars ( req ) [ " " ] ) if err != nil { httputils . ErrorOut ( w , http . StatusNotFound , accountNotFound ) return } repo := container . Instance . GetAuthKeyRepo ( ) keys , err := repo . FetchByHash ( h . String ( ) ) if err != nil { msg := fmt . Sprintf ( " " , err ) httputils . ErrorOut ( w , http . StatusInternalServerError , msg ) return } _ = httputils . JSONOut ( w , http . StatusOK , keys ) }
ListAuthKeys returns a list of all keys for the given account
ListAuthKeys returns a list of all keys for the given account
// Output key