Could Smart Contracts Save Credit Default Swaps?

In Shakespeare’s play The Merchant of Venice, the Venetian merchant Antonio enters into a loan contract, interest free, that should he be unable to repay the loan, he will need to forgo “a pound of flesh” (essentially his life, because the human anatomy cannot cope with such large losses of flesh) in return.