A Massachusetts man has been sentenced to eight years in prison after selling drugs for crypto on the dark web.