Split ZK serializer to ZKEncoder and ZKDecoder