Skip to content

calculate

calculate(input): Promise<PieceCID>

Defined in: packages/synapse-core/src/piece/calculate.ts:23

Compute the PieceCID of input. Always returns a Promise. For the synchronous bytes case, use hasher directly.

ParameterType
inputCalculateInput

Promise<PieceCID>