An ionic-based carbon dot for enantioselective discrimination of nonaromatic amino alcohols.