deriveStealthPrivateKeyV1()
SIP Protocol API Reference v0.15.1
SIP Protocol API Reference / deriveStealthPrivateKeyV1
Function: deriveStealthPrivateKeyV1()
Section titled “Function: deriveStealthPrivateKeyV1()”deriveStealthPrivateKeyV1(
stealthAddress,spendingPrivateKey,viewingPrivateKey):StealthAddressRecovery
Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:4265
Derive the stealth private key for a LEGACY SIP:1 announcement (back-compat)
Routes to the pre-flip swapped-scheme derivation. Use only when claiming funds announced before the canonical EIP-5564 flip; new (SIP:2) payments use deriveStealthPrivateKey.
Parameters
Section titled “Parameters”stealthAddress
Section titled “stealthAddress”The legacy stealth address to recover
spendingPrivateKey
Section titled “spendingPrivateKey”`0x${string}`
Recipient’s spending private key
viewingPrivateKey
Section titled “viewingPrivateKey”`0x${string}`
Recipient’s viewing private key
Returns
Section titled “Returns”Recovery data including the derived private key