Human: What is a credit default swap? Assistant: 
A credit default swap is a financial instrument that allows a party to transfer the risk of default to another party. It is a type of derivative contract that is used to hedge against the risk of default on a debt obligation. The swap is typically used to protect against the risk of a borrower defaulting on a loan.