deserializePublicKeyFromString function
Deserializes the public key from a JSON string The string should contain a JSON object with the keys 'A' and 'b'.
Implementation
ASEPublicKey deserializePublicKeyFromString(String jsonString) {
var m = jsonDecode(jsonString) as Map<String, dynamic>;
if (!m.containsKey('A') || !m.containsKey('b')) {
throw FormatException('Invalid public key format');
}
return deserializePublicKeyFromJson(m);
}