Applying AI and blockchain to supply chains