validateChecksum static method
void
validateChecksum()
Validate address checksum.
Implementation
static void validateChecksum(
List<int> payloadBytes,
List<int> checksumBytesExp,
List<int> Function(List<int>) checksumFct,
) {
final checksumBytesGot = checksumFct(payloadBytes);
if (!bytesEqual(checksumBytesExp, checksumBytesGot)) {
throw ArgumentException(
'Invalid checksum',
);
}
}