Skip to content

@lelantos-org/sdk / fmd / fmdExpandDetectionKey

Function: fmdExpandDetectionKey() โ€‹

ts
function fmdExpandDetectionKey(
   J, 
   P, 
   dkRoot, 
   gamma?
): FmdDetectionKey;

Defined in: @lelantos-org/sdk/dist/fmd/fmd.d.ts:87

Expand the root secret into the ฮณ detection scalars, x_i = dk_root + h_i (mod q) โ€” the discrete logs of fmdExpandFlagKey's output. Receiver side.

Must not apply fmdGenDetectionKey's zero-scalar fixup: remapping a zero x_i here and not in the flag key would desynchronise the two halves. A zero x_i (probability ~2^-251) yields a constant clue bit on both sides, which keeps them consistent.

Parameters โ€‹

ParameterType
JWasmJubjub
PPoseidon
dkRootbigint
gamma?number

Returns โ€‹

FmdDetectionKey

Lelantosno cookies ๐Ÿช ยท no tracking ๐Ÿ‘๏ธ ยท no accounts ๐Ÿ‘คwalletexplorer4536080GitHub