A contract of guarantee involves three distinct contracts: the principal contract between creditor and principal debtor, the contract of guarantee between surety and creditor, and the indemnity contract between surety and principal debtor. Each party has separate rights and obligations under these three agreements.