getPublicKey method
get publicKey from privatKey
Implementation
String? getPublicKey(String? privateKey) {
if (privateKey != null && Account.isPrivateKey.hasMatch(privateKey)) {
return crypto.getPubKeyFromPrivateKey(privateKey);
} else {
return null;
}
}