It’s allowed generally. The cap on anonymous contributions is $50 so would probably be ok there. But, yeah, definitely can be risky since not everyone is US based so there’d be foreign contributions which aren’t allowed.


FEC.gov
Bitcoin contributions - FEC.gov
FEC reporting example illustrating how a House or Senate campaign should disclose contributions received in the form of bitcoin.