static bool isBase58(String input) { final RegExp base58Regex = RegExp( r'^[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]+$', ); return base58Regex.hasMatch(input); }