Skip to content

SuiStealthService

SIP Protocol API Reference v0.7.0


SIP Protocol API Reference / SuiStealthService

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

Sui Stealth Service

Provides a convenient class-based interface for Sui stealth address operations. This is useful when you need to perform multiple operations or want to encapsulate the logic in a service object.

new SuiStealthService(): SuiStealthService

SuiStealthService

generateStealthAddress(recipientMetaAddress): SuiStealthResult

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

Generate a stealth address for a Sui recipient

StealthMetaAddress

Recipient’s stealth meta-address

SuiStealthResult

Complete stealth address result


stealthKeyToSuiAddress(publicKey): string

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

Convert an ed25519 public key to Sui address format

`0x${string}`

32-byte ed25519 public key

string

Sui address string


deriveStealthPrivateKey(stealthAddress, spendingPrivateKey, viewingPrivateKey): object

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

Derive the private key for a stealth address

StealthAddress

Stealth address data

`0x${string}`

Recipient’s spending private key

`0x${string}`

Recipient’s viewing private key

object

Recovery data with derived private key

stealthAddress: `0x${string}`

ephemeralPublicKey: `0x${string}`

privateKey: `0x${string}`

suiAddress: string


checkStealthAddress(stealthAddress, spendingPrivateKey, viewingPrivateKey): boolean

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

Check if a stealth address belongs to this recipient

StealthAddress

Stealth address to check

`0x${string}`

Recipient’s spending private key

`0x${string}`

Recipient’s viewing private key

boolean

true if the address belongs to this recipient


isValidAddress(address): boolean

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

Validate a Sui address format

string

Address to validate

boolean

true if valid format