Encodes input.
input
The input is encoded as if by encoder.convert.
encoder.convert
@override String encode(Segwit data) { return SegwitEncoder().convert(data); }