Smart Contract Guide
π Quick Start
1. Clone and Install
git clone https://github.com/your-org/gelap-contracts
cd gelap-contracts
forge install2. Run Tests
forge test3. Deploy
# Set up environment
cp .env.example .env
# Edit .env with your configuration
# Deploy to testnet
forge script script/DeployGelap.s.sol --rpc-url $RPC_URL --broadcastποΈ Project Structure
gelap-contracts/
βββ src/
β βββ GelapShieldedAccount.sol # Main contract
βββ test/
β βββ Deposit.t.sol # Deposit tests
β βββ Transact.t.sol # Transaction tests
β βββ Withdraw.t.sol # Withdrawal tests
β βββ mocks/
β βββ MockSP1Verifier.sol # Mock verifier
βββ script/
β βββ DeployGelap.s.sol # Deployment script
βββ docs/ # Documentation
βββ lib/ # Dependenciesπ Key Features
π Core Concepts
Commitments
Nullifiers
Merkle Tree
SP1 zkVM
π Links
π€ Contributing
π License
π Support
β οΈ Disclaimer
Last updated