A contract of indemnity and a contract of guarantee are both contingent contracts under contract law. However, they differ in key ways. In a contract of guarantee, there are three parties involved: a creditor, debtor, and surety. The surety guarantees to pay the creditor if the debtor defaults. In contrast, a contract of indemnity involves only two parties: an indemnifier who promises to compensate losses incurred by the indemnified. Additionally, in a guarantee the debtor is primarily liable while the surety is secondarily liable, but in an indemnity the indemnifier assumes primary liability for losses caused.