replacing util.SameBytes with bytes.Equal