Skip to content

AptosStealthService

SIP Protocol API Reference v0.15.1


SIP Protocol API Reference / AptosStealthService

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

Aptos Stealth Service

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

new AptosStealthService(): AptosStealthService

AptosStealthService

generateStealthAddress(recipientMetaAddress): AptosStealthResult

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

Generate a stealth address for an Aptos recipient

StealthMetaAddress

Recipient’s stealth meta-address

AptosStealthResult

Complete stealth address result


stealthKeyToAptosAddress(publicKey): string

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

Convert an ed25519 public key to Aptos address format

`0x${string}`

32-byte ed25519 public key

string

Aptos address string


deriveStealthPrivateKey(stealthAddress, spendingPrivateKey, viewingPrivateKey): object

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

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}`

aptosAddress: string


checkStealthAddress(stealthAddress, viewingPrivateKey, spendingPublicKey): boolean

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

Check if a stealth address belongs to this recipient

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 the address belongs to this recipient


isValidAddress(address): boolean

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

Validate an Aptos address format

string

Address to validate

boolean

true if valid format