Native Bitcoin backed loans on Sui powered by HTLCs (Hashed Time Locked Contracts)
Ember Protocol enables native Bitcoin-backed loans on Sui using HTLCs without intermediaries, multisigs, or wrapped tokens. Borrowers lock Bitcoin as collateral on the Bitcoin network, while lenders lock USDC on Sui. Loans are executed trustlessly, with automated repayment, collateral release, and liquidations handled via HTLCs on both chains. The system ensures security: the lender holds the preimage needed to release collateral, while a Sui-chain HTLC lets borrowers repay principal + interest. This design leverages Bitcoin’s scripting (without Turing completeness) and Sui Move contracts to create decentralized, over-collateralized loans, eliminating custodial risk and bridging complexity. Tech Stack:
Read more: https://ember-7.gitbook.io/ember-protocol-1/
Package ID (Sui Testnet): 0x65f569a89e7c67696c56335e3d3443f6ce9683473d463cf1d1d4164e1062d948
Built with Sui Move for contracts, Golang for lender node with bitcoin script generation, and React for frontend. Building contracts for Sui was a bit challenging, as I wasn't used to Rust—I usually code in Solidity. Also, Bitcoin scripting was a bit complicated, especially understanding the purpose of different opcodes. But it was really fun working on it.

