encodeSingleKey method
Returns the encoded SingleKey address.
Implementation
String encodeSingleKey(IPublicKey pubKey) {
final addressBytes = AptosAddressUtils.encodeSingleKey(pubKey);
return BytesUtils.toHexString(
addressBytes,
prefix: AddrKeyValidator.getConfigArg(
CoinsConf.aptos.params.addrPrefix,
"addrPrefix",
),
);
}