stealthKeyToCosmosAddress()
SIP Protocol API Reference v0.7.0
SIP Protocol API Reference / stealthKeyToCosmosAddress
Function: stealthKeyToCosmosAddress()
Section titled “Function: stealthKeyToCosmosAddress()”stealthKeyToCosmosAddress(
publicKey,prefix):string
Defined in: @sip-protocol/sdk/dist/index-BYZbDjal.d.ts:3084
Convert stealth public key to Cosmos bech32 address
Convenience function that creates a CosmosStealthService instance.
Parameters
Section titled “Parameters”publicKey
Section titled “publicKey”Uint8Array
Compressed secp256k1 public key (33 bytes)
prefix
Section titled “prefix”string
Bech32 address prefix
Returns
Section titled “Returns”string
Bech32-encoded address