calculate
function calculate(data): PieceLink;
Defined in: packages/synapse-sdk/src/piece/piece.ts:153
Calculate the PieceCID (Piece Commitment) for a given data blob
Parameters
Section titled “Parameters”Parameter | Type | Description |
---|---|---|
data | Uint8Array | The binary data to calculate the PieceCID for |
Returns
Section titled “Returns”The calculated PieceCID CID