Blockchain and smart contracts: implications and solutions from a social and legal perspective