(a) A person commits the crime of receiving a bribe by a witness or juror if the person solicits a benefit with the intent that, or accepts or agrees to accept a benefit upon an agreement or understanding that,
(1) the person will be improperly influenced as a witness; or
(2) the person's vote, decision, opinion, or other action as a juror will be influenced.
(b) Receiving a bribe by a witness or juror is a class B felony.