NFT Collateralized Lending Contracts Using Bitcoin’s Commitment Transactions

·

Introduction

Three weeks ago, I finalized the design described here. The reasoning behind it requires only a foundational understanding of Bitcoin’s contract-oriented programming. I have no doubt that similar mechanisms have been invented before or could be independently devised by others without reading this proposal.

Note: While this proposal uses "NFT-collateralized lending" as the primary example, the same design applies to other collateral types (e.g., BTC) and loan assets (e.g., stablecoins).


1. Implementing Collateralization

To protect lender Bob’s interests, borrower Alice must relinquish exclusive control over her NFT (represented as a UTXO, though transferable via protocols like RGB). This is achieved by locking the NFT in a 2-of-2 multisignature output controlled by Alice and Bob.

Key Steps:

2. Single-Payment Redemption Clause

Assume Alice borrows amount M with agreed interest rate and duration (described by function f(i, t)). Two commitment transactions ensure:

  1. Redemption Transaction:

    • Spends the 2-of-2 NFT output, creating two outputs:

      1. Repayment of principal + interest (M * f(i, T)) to Bob.
      2. NFT returned to Alice.
    • Bob signs with SIGHASH_ALL_ANYONECANPAY, allowing Alice to add inputs to cover the repayment.
    • Invalid initially (output value > input), but becomes valid with sufficient inputs.
  2. Expiration Transaction:

    • Spends the 2-of-2 output, transferring the NFT to Bob after timelock T + t.
    • Signed by Alice and held by Bob.

Guarantees:

3. Multi-Payment Interest Arrangements

For staggered repayments (e.g., three installments):

4. Dynamic Liquidation

Critical for protecting lenders when collateral value fluctuates. Key mechanism:

Advantages:

5. Early Repayment & Alternatives

Alice and Bob can cooperatively:

6. Conclusion

This design demonstrates Bitcoin’s untapped potential for financial applications using basic modules: commitment transactions, timelocks, and SIGHASH flags. As asset issuance protocols evolve, such mechanisms will enable broader financialization of digital assets.

👉 Explore more Bitcoin financial tools


FAQ

Q1: Can this design work with non-NFT collateral?
A1: Yes—replace the NFT with BTC or other UTXO-based assets.

Q2: How is the discount rate determined?
A2: Negotiated upfront by both parties, like traditional loans.

Q3: What if Bob falsely triggers liquidation?
A3: Penalty factor (A) and timelock (t) disincentivize misuse.

👉 Learn advanced Bitcoin contract techniques