encodeSecp256k1Key method
encode secp256k1 public key to address
Implementation
String encodeSecp256k1Key(List<int> pubKey) {
final addressBytes = SuiAddressUtils.encodeSecp256k1(pubKey);
return BytesUtils.toHexString(
addressBytes,
prefix: AddrKeyValidator.getConfigArg(
CoinsConf.sui.params.addrPrefix,
"addrPrefix",
),
);
}