What is the wash-sale rule, and does it apply to crypto?

The wash-sale rule disallows the deduction of losses if identical securities or crypto assets are repurchased within 30 days.