@lelantos-org/sdk / primitives / fmdFlagOnBase
Function: fmdFlagOnBase()
ts
function fmdFlagOnBase(
J,
P,
fk,
base,
r
): FmdClue;Defined in: @lelantos-org/sdk/dist/fmd/clue.d.ts:20
Flag a message for fk over the base point base: R = r · base, S_i = r · X_i.
fmdTest accepts the clue under x when fk.X[i] = x_i · base. base and every X_i must be in the prime-order subgroup and not the identity; neither is checked.
Parameters
| Parameter | Type |
|---|---|
J | Jubjub |
P | Poseidon |
fk | FmdFlagKey |
base | Point |
r | bigint |
Returns
FmdClue
Throws
when r is zero mod q.