Skip to content

AptosStealthService

SIP Protocol API Reference v0.7.0


SIP Protocol API Reference / AptosStealthService

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

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-BYZbDjal.d.ts:2596

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-BYZbDjal.d.ts:2603

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-BYZbDjal.d.ts:2612

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, spendingPrivateKey, viewingPrivateKey): boolean

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

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:2633

Validate an Aptos address format

string

Address to validate

boolean

true if valid format