@lelantos-org/sdk / keys / detectionKeyFor
Function: detectionKeyFor() โ
ts
function detectionKeyFor(
J,
P,
vk,
gamma?
): FmdDetectionKey;Defined in: @lelantos-org/sdk/dist/keys/keys.d.ts:44
The ฮณ FMD detection scalars for a viewing key, as POST /v1/subscriptions expects them via detectionKeyToHex.
Releasing these releases the root detection secret permanently: h_i is public, so any single x_i yields dk = x_i - h_i.
gamma is capped at FMD_SENDER_GAMMA, not GAMMA_MAX: a longer key tests clue bits senders never set and discards the wallet's own notes.
Parameters โ
| Parameter | Type |
|---|---|
J | WasmJubjub |
P | Poseidon |
vk | ViewingKey |
gamma? | number |