|
| 1 | +# ADR 0001: Choice of Stellar/Soroban as the Blockchain Network |
| 2 | + |
| 3 | +* Status: Accepted |
| 4 | +* Deciders: VertexChain Core Team |
| 5 | +* Date: 2026-07-17 |
| 6 | + |
| 7 | +## Context and Problem Statement |
| 8 | + |
| 9 | +VertexChain requires a decentralized ledger to manage the registration, ownership, and tokenization of geospatial social posts ("gists"). The blockchain layer must support: |
| 10 | +1. Ownership registry and secure, decentralized transfers of posts. |
| 11 | +2. Low transaction latency and minimal gas fees to support social media interactions. |
| 12 | +3. Smart contract execution for minting utility assets/tokens (Gist tokens). |
| 13 | +4. Developer-friendly and memory-safe contract execution environments. |
| 14 | + |
| 15 | +## Decision Drivers |
| 16 | + |
| 17 | +* **Transaction Cost**: Social applications require highly economical transaction costs. |
| 18 | +* **Latency**: Fast ledger confirmation times are critical for user experience. |
| 19 | +* **Security & Safety**: Smart contracts must be written in a type-safe, memory-safe language to prevent exploits. |
| 20 | +* **Asset Issuance**: Built-in mechanisms to easily represent tokens or standard assets. |
| 21 | + |
| 22 | +## Considered Options |
| 23 | + |
| 24 | +1. **Ethereum / EVM Layer 2 (e.g., Arbitrum or Optimism)** |
| 25 | +2. **Solana** |
| 26 | +3. **Stellar (with Soroban Smart Contracts)** |
| 27 | + |
| 28 | +## Decision Outcome |
| 29 | + |
| 30 | +Chosen option: **Stellar (with Soroban)**, because: |
| 31 | +* **Low & Predictable Fees**: Transaction fees on Stellar are sub-penny (fractions of a cent), making micro-transactions for social posts viable. |
| 32 | +* **Rust-Based Execution Engine**: Soroban uses WebAssembly (WASM) and Rust, providing robust compile-time guarantees, memory safety, and preventing common vulnerabilities associated with Solidity (e.g., reentrancy). |
| 33 | +* **Stellar Asset Contract (SAC)**: Stellar provides built-in support for asset issuance, allowing seamless integration of the Gist Token without complex, custom ERC-20 boilerplate. |
| 34 | +* **Speed**: Consensus is reached in 3-5 seconds, matching the latency requirements of a modern web application. |
| 35 | + |
| 36 | +### Positive Consequences |
| 37 | + |
| 38 | +* Secure smart contract execution using Rust. |
| 39 | +* Predictable, ultra-low gas costs for users minting or transferring gists. |
| 40 | +* Simplified asset integration utilizing Stellar's native token standards. |
| 41 | + |
| 42 | +### Negative Consequences |
| 43 | + |
| 44 | +* Smaller developer ecosystem compared to Ethereum/EVM. |
| 45 | +* Require specialized client-side integration tools (Freighter wallet, Stellar SDK). |
| 46 | + |
| 47 | +## Pros and Cons of the Options |
| 48 | + |
| 49 | +### Ethereum / EVM Layer 2 |
| 50 | + |
| 51 | +* Good: Large ecosystem, mature tooling, abundance of libraries. |
| 52 | +* Bad: Variable gas fees, complex bridging mechanics, and Solidity's historical susceptibility to security bugs. |
| 53 | + |
| 54 | +### Solana |
| 55 | + |
| 56 | +* Good: Extremely fast throughput, very low fees. |
| 57 | +* Bad: High infrastructure requirements to run nodes, complex programming model, history of network congestion. |
| 58 | + |
| 59 | +### Stellar (Soroban) |
| 60 | + |
| 61 | +* Good: Fast settlement, low fees, native asset optimization, Rust safety. |
| 62 | +* Bad: Ecosystem is still growing; smaller developer and validator community. |
0 commit comments