getPublicKey method

IPublicKey getPublicKey(
  1. int changeIndex,
  2. int addressIndex
)

Get a public key for a specific change and address index.

Implementation

IPublicKey getPublicKey(int changeIndex, int addressIndex) {
  return isPublicOnly
      ? _derivePublicKey(changeIndex, addressIndex)
      : getPrivateKey(changeIndex, addressIndex).publicKey;
}