blobIdToInt function
Convert a URL-safe base64 blob ID to BigInt (u256).
Mirrors TS SDK blobIdToInt(blobId).
Inverse of blobIdFromInt.
Implementation
BigInt blobIdToInt(String blobId) {
final padded = _addBase64Padding(
blobId.replaceAll('-', '+').replaceAll('_', '/'),
);
final bytes = base64Decode(padded);
return _bytes32LEtoBigInt(bytes);
}