decodeBytesToUint static method
Implementation
static BigInt decodeBytesToUint(Uint8List encoded) {
var result = BigInt.zero;
for (final byte in encoded) {
// reading in big-endian, so we essentially concat the new byte to the end
result = (result << 8) | BigInt.from(byte);
}
return result;
}