computeMetadata abstract method

Future<BlobMetadata> computeMetadata(
  1. Uint8List data,
  2. int numShards
)

Compute metadata for the given blob data without full encoding.

Returns BlobMetadata containing the blob ID, root hash, and other fields needed for on-chain registration.

data is the raw unencoded blob content. numShards is the number of storage shards in the current committee.

Implementation

Future<BlobMetadata> computeMetadata(Uint8List data, int numShards);