encodeKey method

  1. @override
String encodeKey(
  1. List<int> keyBytes, {
  2. ZCashNetwork? network,
})
override

Encodes a public key or address bytes into a blockchain address.

Implementation

@override
String encodeKey(List<int> keyBytes, {ZCashNetwork? network}) {
  network ??= ZCashNetwork.mainnet;
  return ZCashAddressUtils.encodeAddress(
    bytes: keyBytes,
    type: ZCashAddressType.unified,
    network: network,
  );
}