@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
| Parameter | Type |
|---|---|
P | Poseidon |
ivk | bigint |
Returns
bigint
Throws
when the result is zero, which would make every ck_d the identity.