@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
| Parameter | Type | Description |
|---|---|---|
nsk | bigint | The sender's nullifier spending key. |
chainId | bigint | - |
index | number | - |
Returns
bigint
Throws
for an index outside [0, 2^31).