Skip to content

checkSuiStealthAddress()

SIP Protocol API Reference v0.7.0


SIP Protocol API Reference / checkSuiStealthAddress

checkSuiStealthAddress(stealthAddress, spendingPrivateKey, viewingPrivateKey): boolean

Defined in: @sip-protocol/sdk/dist/index-BYZbDjal.d.ts:2794

Check if a stealth address belongs to this recipient

Uses view tag for efficient filtering before full computation. This is the same as the standard ed25519 check since Sui stealth addresses use ed25519 stealth public keys.

StealthAddress

Stealth address to check

`0x${string}`

Recipient’s spending private key

`0x${string}`

Recipient’s viewing private key

boolean

true if this address belongs to the recipient

If any input is invalid

const isMine = checkSuiStealthAddress(
stealthAddress,
mySpendingPrivKey,
myViewingPrivKey
)