Constructor
# new Block(data, cid)
Block creates an immutable block of data with the given content identifier (CID).
Parameters:
Name | Type | Description |
---|---|---|
data |
Buffer | The data to be stored in the block as a buffer. |
cid |
CID | The content identifier of the data. |