encode static method

String encode(
  1. String humanReadablePart,
  2. Uint8List data
)

Encodes the given data using the Bech32 encoding with the given human readable part

Implementation

static String encode(String humanReadablePart, Uint8List data) {
  final List<int> converted = _convertBits(data, 8, 5);
  final bech32Codec = Bech32Codec();
  final bech32Data = Bech32(humanReadablePart, Uint8List.fromList(converted));
  return bech32Codec.encode(bech32Data);
}