Collaborative Security for Bitcoin