Blockchain for counterfeit prevention