bytesToBigInt function

BigInt bytesToBigInt(
  1. List<int> data
)

Implementation

BigInt bytesToBigInt(List<int> data) {
  BigInt result = BigInt.from(0);
  for (int i = 0; i < data.length; i++) {
    var v = data[i];
    result = result * BigInt.from(256);
    result += BigInt.from(v);
  }
  return result;
}