isPieceCID
function isPieceCID(cid): cid is PieceLink;Defined in: packages/synapse-core/src/piece.ts:67
Check if a CID is a valid PieceCID
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
cid | Link | The CID to check |
Returns
Section titled “Returns”cid is PieceLink
True if it’s a valid PieceCID