encode method

String encode(
  1. List<int> data
)

Implementation

String encode(List<int> data) {
  switch (this) {
    case TransactionSerializeEncoding.base58:
      return Base58Encoder.encode(data);
    case TransactionSerializeEncoding.base64:
      return StringUtils.decode(data, type: StringEncoding.base64);
    default:
      return BytesUtils.toHexString(data);
  }
}