What’s the right way to get the address from its public key (as published in the opt-in transaction)?
I tried
Address.createFromPublicKey(Convert.utf8ToHex("${publicKey}"), NetworkType.MAIN_NET)
but it doesn’t match. What’s the wrong in this code?