fromData static method
Creates a block from raw data, automatically computing the CID.
Implementation
static Future<Block> fromData(Uint8List data, {String format = 'raw'}) async {
final cid = await CID.fromContent(data, codec: format);
return Block(cid: cid, data: data, format: format);
}