Skip to content

@lelantos-org/sdk / primitives / deriveDkRoot

Function: deriveDkRoot() ​

ts
function deriveDkRoot(P, ivk): bigint;

Defined in: @lelantos-org/sdk/dist/keys/diversified.d.ts:27

The FMD root detection secret as a subgroup scalar: Poseidon(TAG_DK, ivk) mod q.

Parameters ​

ParameterType
PPoseidon
ivkbigint

Returns ​

bigint

Throws ​

when the result is zero, which would make every ck_d the identity.