getPublicKey method

String? getPublicKey(
  1. String? privateKey
)

get publicKey from privatKey

Implementation

String? getPublicKey(String? privateKey) {
  if (privateKey != null && Account.isPrivateKey.hasMatch(privateKey)) {
    return crypto.getPubKeyFromPrivateKey(privateKey);
  } else {
    return null;
  }
}