checkStealthAddress()
SIP Protocol API Reference v0.15.1
SIP Protocol API Reference / checkStealthAddress
Function: checkStealthAddress()
Section titled “Function: checkStealthAddress()”checkStealthAddress(
stealthAddress,viewingPrivateKey,spendingPublicKey):boolean
Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:4280
Check if a stealth address was intended for this recipient
Automatically dispatches to the correct curve implementation.
Canonical EIP-5564 view-only check: requires only the recipient’s viewing private key plus their spending PUBLIC key (no spending private key needed).
Parameters
Section titled “Parameters”stealthAddress
Section titled “stealthAddress”Stealth address to check
viewingPrivateKey
Section titled “viewingPrivateKey”`0x${string}`
Recipient’s viewing private key
spendingPublicKey
Section titled “spendingPublicKey”`0x${string}`
Recipient’s spending public key (meta-address spendingKey)
Returns
Section titled “Returns”boolean
true if this address belongs to the recipient
Throws
Section titled “Throws”If any input is invalid