encodeKey method
String
encodeKey(
- List<
int> keyBytes, { - ZCashNetwork? network,
- ZCashAddressType? addrType,
override
Encodes a public key or address bytes into a blockchain address.
Implementation
@override
String encodeKey(
List<int> keyBytes, {
ZCashNetwork? network,
ZCashAddressType? addrType,
}) {
network ??= ZCashNetwork.mainnet;
addrType ??= AddrKeyValidator.getAddrArg<ZCashAddressType>(
addrType,
"addrType",
);
return ZCashAddressUtils.encodeAddress(
bytes: keyBytes,
type: addrType,
network: network,
);
}