Skip to content

@lelantos-org/sdk / x402 / deriveEphemeralKey

Function: deriveEphemeralKey() ​

ts
function deriveEphemeralKey(nsk, index): `0x${string}`;

Defined in: @lelantos-org/sdk/dist/x402/ephemeral.d.ts:20

keccak256(domainTag ‖ nsk_le ‖ u32le(index)) reduced into [1, n-1]. Deterministic in the wallet and index.

Parameters ​

ParameterTypeDescription
nskbigintNullifier spending key — walletInternals(wallet).keys.nsk.
indexnumberPayer slot. Distinct indices are unlinkable to each other.

Returns ​

`0x${string}`