By giving evidence linking to the charge of the offence the witness performs a sacred duty of assisting the court to discover the truth.
These services focus primarily on information, support, and referrals.
Advocates provide information about legal processes so that victims understand their rights and choices and what will happen at each step of the proceedings.
The implementation of such a law would involve drawing up: (a) Procedures for granting anonymity to witnesses and also (b) Introducing Witness Protection Programmes in which personal protection is granted to the witness; sometimes by shifting the witness to a different place or even a different country; or by providing some money for maintenance or even by providing employment elsewhere.
Unfortunately, all these are seen not to be happening in the courts and the countries.