isMNID static method
Determines whether the given string is a valid MNID.
encoded
- The string to be checked.
Returns true if the input is a valid MNID, false otherwise.
Implementation
static bool isMNID(String encoded) {
try {
final Uint8List data = base58.decode(encoded);
return data.length > 24 && data[0] == 1;
} catch (e) {
return false;
}
}