Can be useful to have a method to get the address from publicKey:
function getAddress(publicKey) {
const hash = sodium.crypto_generichash(20, publicKey);
const pkh = Utility.b58cencode(hash, Prefix.tz1)
return pkh
}
and something else for longer privateKey