Skip to content

@lelantos-org/sdk / primitives / subscriptionTokenToHex

Function: subscriptionTokenToHex() ​

ts
function subscriptionTokenToHex(token): string;

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

Encode a deriveSubscriptionToken output as the bare 32-byte little-endian hex that POST /v1/subscriptions and GET /v1/matches expect.

Not reduced mod BABYJUB_SUBGROUP_ORDER: the token is an opaque identifier the server hashes and compares, not a curve scalar, and reducing it would discard entropy.

Parameters ​

ParameterType
tokenbigint

Returns ​

string