deriveStealthPrivateKey()
SIP Protocol API Reference v0.7.4
SIP Protocol API Reference / deriveStealthPrivateKey
Function: deriveStealthPrivateKey()
Section titled “Function: deriveStealthPrivateKey()”deriveStealthPrivateKey(
stealthAddress,spendingPrivateKey,viewingPrivateKey):StealthAddressRecovery
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:4207
Derive the private key for a stealth address (for recipient to claim funds)
Automatically dispatches to the correct curve implementation.
Parameters
Section titled “Parameters”stealthAddress
Section titled “stealthAddress”The 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 derived private key
Throws
Section titled “Throws”If any input is invalid