Skip to content

@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 โ€‹

ParameterType
shapeCircuitShape

Returns โ€‹

number

Lelantosno cookies ๐Ÿช ยท no tracking ๐Ÿ‘๏ธ ยท no accounts ๐Ÿ‘คwalletexplorer4536080GitHub