I have been using @midnight-ntwrk/wallet-sdk-address-format (v2.0.0 published 8 months ago) with testnet-2 to decode/parse coin public keys retrieved from the wallet provider, e.g.:
const pk = providers.walletProvider.getCoinPublicKey();
const zswapPk = MidnightBech32m.parse(pk);
But I’ve just tried the same with both preview and undeployed networks and it seems those type of formats are not supported by this library.
Does anybody know of any other of the js libs which supports such a decoding/parsing API which works on preview and undeployed networks?