A person having knowledge of the commission by another of a felony indictable in this state who receives any consideration for a promise to conceal such crime, or not to prosecute or aid or give evidence to the prosecution of such crime, compounds that felony. Compounding any felony is an aggravated misdemeanor.
Iowa Code § 720.1