Skip to content

@lelantos-org/sdk / primitives / deriveClaimLinkNsk

Function: deriveClaimLinkNsk() ​

ts
function deriveClaimLinkNsk(
   nsk, 
   chainId, 
   index
): bigint;

Defined in: @lelantos-org/sdk/dist/keys/claim-link.d.ts:10

The spending key of the account's index-th claim link on chain chainId.

As sensitive as the funds sent to it: this is the secret the link carries.

Parameters ​

ParameterTypeDescription
nskbigintThe sender's nullifier spending key.
chainIdbigint-
indexnumber-

Returns ​

bigint

Throws ​

for an index outside [0, 2^31).