Selling securities at a loss, then purchasing substantially identical securities within 30 days prohibits the capital loss write-off.
This includes transactions between spouses and closely held corp.
Crypto losses are CURRENTLY not considered securities. Therefor the wash-sale rule does not apply.