Whoever does any of the following is guilty of bribery and may be sentenced to imprisonment for not more than ten years or to payment of a fine of not more than $20,000, or both:
(1) offers, gives, or promises to give, directly or indirectly, to any person who is a public officer or employee any benefit, reward or consideration to which the person is not legally entitled with intent thereby to influence the person's performance of the powers or duties as such officer or employee; or
(2) being a public officer or employee, requests, receives or agrees to receive, directly or indirectly, any such benefit, reward or consideration upon the understanding that it will have such an influence; or
(3) offers, gives, or promises to give, directly or indirectly any such benefit, reward, or consideration to a person who is a witness or about to become a witness in a proceeding before a judicial or hearing officer, with intent that the person's testimony be influenced thereby, or that the person will not appear at the proceeding; or
(4) as a person who is, or is about to become such witness requests, receives, or agrees to receive, directly or indirectly, any such benefit, reward, or consideration upon the understanding that the person's testimony will be so influenced, or that the person will not appear at the proceeding; or
(5) accepts directly or indirectly a benefit, reward or consideration upon an agreement or understanding, express or implied, that the acceptor will refrain from giving information that may lead to the prosecution of a crime or purported crime or that the acceptor will abstain from, discontinue, or delay prosecution therefor, except in a case where a compromise is allowed by law.
Any public officer who is convicted of violating or attempting to violate subdivision 1 shall forfeit the public officer's office and be forever disqualified from holding public office under the state.