generateAptosStealthAddress()
SIP Protocol API Reference v0.7.0
SIP Protocol API Reference / generateAptosStealthAddress
Function: generateAptosStealthAddress()
Section titled “Function: 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.
Parameters
Section titled “Parameters”recipientMetaAddress
Section titled “recipientMetaAddress”Recipient’s stealth meta-address (must be chain: ‘aptos’)
Returns
Section titled “Returns”Aptos stealth address result with all necessary data
Throws
Section titled “Throws”If meta-address is invalid or not for Aptos
Example
Section titled “Example”const metaAddress = { spendingKey: '0x...', viewingKey: '0x...', chain: 'aptos'}const result = generateAptosStealthAddress(metaAddress)console.log(result.stealthAddress) // "0x1234...abcd"console.log(result.viewTag) // 42