computeAndEncodeKeys method

String computeAndEncodeKeys(
  1. int minorIndex,
  2. int majorIndex,
  3. List<int> netVer
)

Compute and encode Monero subaddress keys into a string representation.

This method calculates the Monero subaddress keys using the provided minorIndex and majorIndex and encodes them into a string representation. It also takes the netVer parameter to specify the network version.

It returns the encoded string representation of the subaddress keys.

Implementation

String computeAndEncodeKeys(
    int minorIndex, int majorIndex, List<int> netVer) {
  final keys = computeKeys(minorIndex, majorIndex);

  return XmrAddrEncoder().encodeKey(keys.pubSKey.compressed,
      {"pub_vkey": keys.pubVKey.compressed, "net_ver": netVer});
}