35-7-1043. Immunity from prosecution.
All duly authorized peace officers including any special agents or other personnel appointed by the commissioner, and probation and parole agents as defined in W.S. 7-13-401, while investigating violations of this act in performance of their official duties, shall be immune from prosecution under this act. Any person working under the immediate direction, supervision or instruction of a duly authorized peace officer, special agent or other person appointed by the commissioner, may be granted immunity from prosecution under this act by the commissioner. In addition to the foregoing persons, such immunity may also be granted to any person whose testimony is necessary to secure a conviction under this act with the consent of district judge in the district wherein prosecution is to take place. Any person granted immunity under this section shall not be excused from testifying or producing evidence on the ground that the testimony or evidence required of him may tend to incriminate him or subject him to penalty or forfeiture. Any person who except for the provisions of this act, would have been privileged to withhold the testimony given or the evidence produced by him shall not be prosecuted, subjected to any penalty, forfeiture, for or on account of any transaction, matter or thing concerning which, by reason of said immunity, he gave testimony and produced evidence; and no such testimony given or evidence produced shall be received against him in any criminal proceeding. Provided, no person given immunity under this section shall be exempt from prosecution for perjury or contempt committed while giving testimony or producing evidence under compulsion as provided in this section.