Implement tx-encode/decode, input/output serializers.