  We obtain universal bounds on the energy of codes and for designs in Hamming
spaces. Our bounds hold for a large class of potential functions, allow unified
treatment, and can be viewed as a generalization of the Levenshtein bounds for
maximal codes.
