A secure framework for publishing virtual community contracts