Makes me think of an episode in the TV series black mirror: https://m.imdb.com/title/tt5497778/
In China, the proposal is that people will be given credit scores by the government based on a set of laws and criteria. In this case, it would not be subject to the whims of mob rule.