computeMetadata method

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

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

@override
Future<BlobMetadata> computeMetadata(Uint8List data, int numShards) async {
  return computeMetadataSync(data, numShards);
}