SAN DIEGO (AP) — A San Diego man who sold drugs through the so-called dark web has pleaded guilty to conspiracy and agreed to turn over millions of dollars' worth of bitcoins and other digital currencies.

Sky Gornik entered a plea Tuesday to taking part in a conspiracy to distribute drugs and launder the proceeds. He's facing at least 10 years in federal prison.

Prosecutors say Gornik acknowledged that from 2014 to last June, he bought and sold fentanyl, ketamine, oxycodone, methamphetamine and other drugs anonymously through Alpha Bay and other dark web sites.

Authorities who searched his home last year say they found enough of the powerful opiate carfentanil to provide 86,000 fatal doses.