deriveStealthPrivateKey()
SIP Protocol API Reference v0.7.0
SIP Protocol API Reference / deriveStealthPrivateKey
Function: deriveStealthPrivateKey()
Section titled “Function: deriveStealthPrivateKey()”deriveStealthPrivateKey(
stealthAddress,spendingPrivateKey,viewingPrivateKey):StealthAddressRecovery
Defined in: @sip-protocol/sdk/dist/index-BYZbDjal.d.ts:1415
Derive the private key for a stealth address (for recipient to claim funds)
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