@lelantos-org/sdk / primitives / deriveDiversifiedPk
Function: deriveDiversifiedPk()
ts
function deriveDiversifiedPk(
P,
ivk,
d
): bigint;Defined in: @lelantos-org/sdk/dist/keys/diversified.d.ts:20
The commitment key of address d: Poseidon(TAG_PK, ivk, d), arity 3.
Parameters
| Parameter | Type |
|---|---|
P | Poseidon |
ivk | bigint |
d | bigint |
Returns
bigint
Throws
when d is not in [0, 2^128) or ivk is not canonical.