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,
);
}