Using blockchain to secure the 'internet of things'