deserializePrivateKeyFromString function
Deserializes the private key from a JSON string The string should contain a JSON object with the key 's'.
Implementation
ASEPrivateKey deserializePrivateKeyFromString(String jsonString) {
var m = jsonDecode(jsonString) as Map<String, dynamic>;
if (!m.containsKey('s')) {
throw FormatException('Invalid private key format');
}
return deserializePrivateKeyFromJson(m);
}