convertBits static method

List<int> convertBits(
  1. List<int> data,
  2. int from,
  3. int to,
  4. bool pad,
)

Convert bits from one size to another Used for bech32 encoding/decoding

Implementation

static List<int> convertBits(List<int> data, int from, int to, bool pad) {
  return Nip19Utils.convertBits(data, from, to, pad);
}