Ionchain: When Blockchain meets Edge Technology