Slice bytes and convert to BigInt
static BigInt sliceBytes(Uint8List b, int from, int to) { return bytesToBigInt(b.sublist(from, to)); }