Framework for implementing alternative credit schemes and digital social currencies