Blockchain and smart contracts for value exchange