Skip to content

@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 ​

ParameterType
JJubjub
PPoseidon
fkFmdFlagKey
basePoint
rbigint

Returns ​

FmdClue

Throws ​

when r is zero mod q.