Blockchain and the Internet of Things