Skip to content

checkSuiStealthAddress()

SIP Protocol API Reference v0.15.1


SIP Protocol API Reference / checkSuiStealthAddress

checkSuiStealthAddress(stealthAddress, viewingPrivateKey, spendingPublicKey): boolean

Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:5878

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.

Canonical EIP-5564 view-only check: requires only the recipient’s viewing private key plus their spending PUBLIC key (no spending private key needed).

StealthAddress

Stealth address to check

`0x${string}`

Recipient’s viewing private key

`0x${string}`

Recipient’s spending public key (meta-address spendingKey)

boolean

true if this address belongs to the recipient

If any input is invalid

const isMine = checkSuiStealthAddress(
stealthAddress,
myViewingPrivKey,
mySpendingPubKey
)