encodeKey method
Encodes a public key or address bytes into a blockchain address.
Throws AddressConverterException on invalid input.
Implementation
@override
String encodeKey(List<int> pubKey) {
// INJ addresses reuse Ethereum's key derivation, re-encoded as Bech32.
final ethAddr = EthAddrEncoder().encodeKey(pubKey);
return Bech32Encoder.encode(
AddrKeyValidator.getConfigArg(
CoinsConf.injective.params.addrHrp,
"addrHrp",
),
BytesUtils.fromHexString(ethAddr),
);
}