use bytes.Equal instead of converting to strings

use bytes.Equal
instead of h1.Hex() == h2.String()
and other permutations