@lelantos-org/sdk / fmd / subscriptionTokenToHex
Function: subscriptionTokenToHex() โ
ts
function subscriptionTokenToHex(token): string;Defined in: @lelantos-org/sdk/dist/fmd/fmd.d.ts:67
Encode a deriveSubscriptionToken output as the bare 32-byte hex that POST /v1/subscriptions and GET /v1/matches expect. LE-32, matching detectionKeyToHex.
Not reduced mod BABYJUB_SUBGROUP_ORDER, unlike the detection scalars: the token is not a curve scalar but an opaque identifier the server hashes and compares, and reducing it would discard entropy.
Parameters โ
| Parameter | Type |
|---|---|
token | bigint |
Returns โ
string