hrpExpand static method
Expand the HRP into values for checksum computation.
Implementation
static List<int> hrpExpand(String hrp) {
final List<int> expand = [];
for (int i = 0; i < hrp.length; i++) {
final codeUnit = hrp.codeUnitAt(i);
expand.add(codeUnit >> 5);
}
expand.add(0);
for (int i = 0; i < hrp.length; i++) {
final codeUnit = hrp.codeUnitAt(i);
expand.add(codeUnit & 0x1f);
}
return expand;
}