I get the point you’re trying to convey but - at least in the US - you’re legally required to make donations to political candidates publicly anyway, so this isn’t really a regression over the status quo.
That's why you make your anonymous donation to the "Friends of John Smith" organisation, who is completely unaffiliated with John Smith and is merely interested in seeing him elected to office