taprootAddress()
SIP Protocol API Reference v0.7.0
SIP Protocol API Reference / taprootAddress
Function: taprootAddress()
Section titled “Function: taprootAddress()”taprootAddress(
tweakedKey,network?):string
Defined in: @sip-protocol/sdk/dist/index-BYZbDjal.d.ts:5979
Encode Taproot address using Bech32m (BIP-350)
Parameters
Section titled “Parameters”tweakedKey
Section titled “tweakedKey”Uint8Array
32-byte tweaked x-only public key
network?
Section titled “network?”Bitcoin network (mainnet, testnet, regtest)
Returns
Section titled “Returns”string
Bech32m encoded Taproot address (bc1p… for mainnet)