Text this: Hash function based optimal block chain model for the internet of things (IoT)