crc32Del function

Uint8List crc32Del(
  1. Uint8List buf
)

Given an account address with a prepended big-endian CRC32 checksum, verify the checksum and remove it. @param {Buffer} buf @returns {Buffer}

Implementation

Uint8List crc32Del(Uint8List buf) {
  final res = buf.sublist(4);
  assert(getCrc32(res.buffer) == buf.buffer.asByteData().getUint32(0));
  return res;
}