It depends what you by "legtimate".
I have nothing but contempt for Hamas but armies need to raise and distributed funds. BTC is an effective way of serving both those aims therefore
how can it not be legitimate?
Now, that being said, it is also "legitimate" for their adversaries to make funding, any funding, of Hamas to be illegal in their jurisdiction.