To grant or convey, as property, for the security of a
   debt, or other engagement, upon a condition that if the debt or
   engagement shall be discharged according to the contract, the
   conveyance shall be void, otherwise to become absolute, subject,
   however, to the right of redemption.