delivered the opinion of the court.
*4753. Contracts, § 161 * —when illegal purpose of one party does not invalidate. In an action to recover back money paid by plaintiff to defendant under a contract providing that the money should be returned under certain conditions, it is not a defense to the action that defendant had a private purpose to use the money unlawfully, unless plaintiff knew of such purpose.