Skip to content

@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 โ€‹

ParameterType
tokenbigint

Returns โ€‹

string

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