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 converted = _convertBits(data, 8, 5);
  const bech32Codec = Bech32Codec();
  final bech32Data = Bech32(humanReadablePart, converted);

  return bech32Codec.encode(bech32Data);
}