toBits method

  1. @override
List<bool> toBits()
override

Implementation

@override
List<bool> toBits() {
  final toBytes = this.toBytes();
  final tmpLimbs = List<BigInt>.generate(4, (i) {
    return BigintUtils.fromBytes(
      toBytes.sublist(i * 8, (i * 8) + 8),
      byteOrder: Endian.little,
    );
  });
  return tmpLimbs
      .map((e) => BigintUtils.toBinaryBool(e, bitLength: 64))
      .expand((e) => e)
      .toList();
}