Investors in cryptocurrencies are hoping lightning strikes twice, as the outsize recent gains in bitcoin are encouraging migration to several digital relatives.

So-called “altcoins”—alternative versions of bitcoin—have been rising along with bitcoin itself. Most prominently, a digital currency called litecoin surged about 60% last Wednesday alone, trading at a record-high $341.72, according to coinmarketcap.com.

It...