Donating ill-gotten gains does not legitimize them. This isn't a confusing concept...
Also, it's cryptocurrency. There is literally no burden to prove that this money was donated, or what "charity" even means in this context.