generateCosmosStealthAddress()
SIP Protocol API Reference v0.7.0
SIP Protocol API Reference / generateCosmosStealthAddress
Function: generateCosmosStealthAddress()
Section titled “Function: generateCosmosStealthAddress()”generateCosmosStealthAddress(
spendingPubKey,viewingPubKey,chain):CosmosStealthResult
Defined in: @sip-protocol/sdk/dist/index-BYZbDjal.d.ts:3074
Generate a one-time stealth address for a Cosmos chain
Convenience function that creates a CosmosStealthService instance.
Parameters
Section titled “Parameters”spendingPubKey
Section titled “spendingPubKey”Uint8Array
Recipient’s spending public key
viewingPubKey
Section titled “viewingPubKey”Uint8Array
Recipient’s viewing public key
Cosmos chain identifier
Returns
Section titled “Returns”Cosmos stealth address with bech32 encoding