subaddress method

String subaddress(
  1. int minorIndex, {
  2. int majorIndex = 0,
})

Get a subaddress based on minor and major indexes, or return the primary address if both are 0.

Implementation

String subaddress(int minorIndex, {int majorIndex = 0}) {
  if (minorIndex == 0 && majorIndex == 0) {
    return primaryAddress;
  }
  return scubaddr.computeAndEncodeKeys(
      minorIndex, majorIndex, coinConf.subaddrNetVer);
}