parseEncPublicKeyToHex
Midnight.js API Reference v3.1.0
Midnight.js API Reference / @midnight-ntwrk/midnight-js-utils / parseEncPublicKeyToHex
Function: parseEncPublicKeyToHex()
parseEncPublicKeyToHex(
possibleBech32,zswapNetworkId):string
Parses an encryption public key (in Bech32m or hex format) into a hex formatted string.
Parameters
possibleBech32
string
The input string, which can be a Bech32m-encoded encryption public key or a hex string.
zswapNetworkId
string
The network ID used for decoding the Bech32m formatted string.