46-15-331. Compelling testimony or production of evidence -- immunity. (1) Before or during trial in any judicial proceeding, a judge of the district or municipal court, upon request by the prosecutor or defense counsel, may require a person to answer any question or produce any evidence, even though personally incriminating, following a grant of immunity.
(2) If a person is required to give testimony or produce evidence in accordance with this section in any investigation or proceeding, compelled testimony or evidence and any information directly or indirectly derived from such testimony or evidence may not be used against the witness in any criminal prosecution.
(3) Nothing in this section prohibits a prosecutor from granting immunity from prosecution for or on account of any transaction, matter, or thing concerning which a witness is compelled to testify if in the prosecutor's sole discretion it is determined that the ends of justice would be served.
(4) Immunity may not extend to prosecution or punishment for false statements given in any testimony required under this section.