validateSync method

bool validateSync()

Synchronous structural validation.

This checks only that the block is non-empty and has a valid CID encoding. Use validate for cryptographic verification.

Implementation

bool validateSync() {
  if (data.isEmpty) return false;
  if (cid.encode().isEmpty) return false;
  return true;
}