|
4 | 4 | - toc |
5 | 5 | --- |
6 | 6 |
|
| 7 | +## Simplicity for Bitcoiners |
| 8 | + |
7 | 9 | <div class="grid cards" markdown> |
8 | 10 |
|
9 | 11 | - ### :material-code-braces: Expressive Smart Contracts |
@@ -32,6 +34,49 @@ Multi-party spending policies, staged cooperation, and recovery paths are expres |
32 | 34 |
|
33 | 35 | </div> |
34 | 36 |
|
| 37 | +## Simplicity for Finance |
| 38 | + |
| 39 | +<div class="grid cards" markdown> |
| 40 | + |
| 41 | +- ### :material-handshake: Reduced Counterparty and Settlement Risk |
| 42 | + By encoding complex settlement logic directly on-chain, contracts become self-enforcing and physically settled without intermediaries, drastically reducing counterparty risk. |
| 43 | + |
| 44 | +- ### :material-receipt-text-check-outline: No More Surprise "Gas" Fees |
| 45 | + Every Simplicity contract has a statically bounded computational cost that can be determined before execution. This provides predictable, reliable operational fees, eliminating the unpredictable fee dynamics seen on other platforms. |
| 46 | + |
| 47 | +- ### :material-bank-plus: Build Complex TradFi Products On-Chain |
| 48 | + Simplicity is expressive enough to create sophisticated, non-custodial financial instruments directly on-chain. Build trustless versions of traditional products like options, bonds, and collateralized loans without relying on intermediaries or oracles. |
| 49 | + |
| 50 | +- ### :material-treasure-chest: Programmable Treasury and Asset Control |
| 51 | + Create powerful on-chain rules (covenants) for self-custodied, institutional-grade vaults. Enforce spending limits, require multi-party approval for large transactions, or programmatically enforce time-locked withdrawals and spending velocity limits—all without a trusted third party. |
| 52 | + |
| 53 | +</div> |
| 54 | + |
| 55 | + |
| 56 | +## Simplicity Examples |
| 57 | + |
| 58 | +<div class="grid cards" markdown> |
| 59 | + |
| 60 | +- ### :material-lock-clock: Hash Time-Locked Contracts (HTLCs) |
| 61 | + The building block for payment channels and atomic swaps. Lock funds until a secret is revealed or a timeout is reached, enabling trustless, cross-chain exchanges and Layer 2 protocols like the Lightning Network. |
| 62 | + |
| 63 | +- ### :material-swap-horizontal-bold: Trustless Atomic Swaps |
| 64 | + Execute peer-to-peer trades of different assets across blockchains without settlement risk. Simplicity ensures that either both parties receive their assets or the trade is atomically reverted. |
| 65 | + |
| 66 | +- ### :material-chart-line: Covered Call Options |
| 67 | + Write and settle derivatives contracts directly on-chain. A seller can lock collateral to issue a call option, which a buyer can exercise at a predetermined strike price before an expiry date, all enforced by the Simplicity program. |
| 68 | + |
| 69 | +- ### :material-cash-lock: Collateralized Loans |
| 70 | + Lock collateral in a Simplicity contract to borrow assets. The program guarantees that the lender can claim the collateral if the borrower defaults, or that the borrower can reclaim it upon repayment—all without a trusted intermediary. |
| 71 | + |
| 72 | +</div> |
| 73 | + |
| 74 | + |
| 75 | +# Write in a Language You Already Know |
| 76 | + |
| 77 | +You can use SimplicityHL, a high-level language with a clean, Rust-like syntax. This abstracts away low-level complexity, making it straightforward to write clear and reliable financial contracts with minimal code. |
| 78 | + |
| 79 | + |
35 | 80 | ``` rust title="Hash Time-Locked Contract" |
36 | 81 | /* |
37 | 82 | * The recipient can spend the coins by providing the secret preimage of a hash. |
|
0 commit comments