if the ID of the accuser is kept secret then the same should hold for the accused. Upon conviction then all revealed. No conviction no reveal.
Also a just solution.