encoding for go hexabus