Constructing Trustworthy and Safe Communities on a Blockchain-Enabled Social Credits System