encode function

String encode(
  1. Uint8List payload
)

Implementation

String encode(Uint8List payload) {
  Uint8List hash = _sha256x2(payload);
  Uint8List combine = Uint8List.fromList(
      [payload, hash.sublist(0, 4)].expand((i) => i).toList(growable: false));
  return base58.encode(combine);
}