@lelantos-org/sdk / primitives / detectionKeyFor
Function: detectionKeyFor()
ts
function detectionKeyFor(
P,
vk,
gamma?
): FmdDetectionKey;Defined in: @lelantos-org/sdk/dist/keys/keys.d.ts:68
The γ FMD detection scalars for a viewing key, as POST /v1/subscriptions expects them via detectionKeyToHex. One key detects for every address of the account.
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_DEFAULT_GAMMA, not GAMMA_MAX: a longer key tests clue bits senders never set and discards the wallet's own notes.
Parameters
| Parameter | Type |
|---|---|
P | Poseidon |
vk | ViewingKey |
gamma? | number |