@lelantos-org/sdk / index / coeffCount
Function: coeffCount() โ
ts
function coeffCount(shape): number;Defined in: @lelantos-org/sdk/dist/core/shape.d.ts:69
Coefficients PubInputs.compress emits for shape.
Nine scalar slots โ merkle root, the three public amounts, recipient, chainId, payer, relayer, and the aux digest โ plus 3 per input (nullifier and the two in_cv coordinates) and 8 per output (out_cm, out_cv, out_cv_dep, and three clue slots).
31 at 2ร2, 42 at 3ร3, 53 at 4ร4. circuit/vectors.test.ts checks each against the coeffCount the circuits package publishes.
Parameters โ
| Parameter | Type |
|---|---|
shape | CircuitShape |
Returns โ
number