Skip to content

generateAptosStealthAddress()

SIP Protocol API Reference v0.7.0


SIP Protocol API Reference / generateAptosStealthAddress

generateAptosStealthAddress(recipientMetaAddress): AptosStealthResult

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

Generate a stealth address for Aptos

Uses the existing ed25519 stealth address generation logic and converts the resulting ed25519 public key to Aptos address format.

StealthMetaAddress

Recipient’s stealth meta-address (must be chain: ‘aptos’)

AptosStealthResult

Aptos stealth address result with all necessary data

If meta-address is invalid or not for Aptos

const metaAddress = {
spendingKey: '0x...',
viewingKey: '0x...',
chain: 'aptos'
}
const result = generateAptosStealthAddress(metaAddress)
console.log(result.stealthAddress) // "0x1234...abcd"
console.log(result.viewTag) // 42