Criptomoeda Koder Kash (KSH) — implementada em Koder Lang
https://kash.koder.dev
- HTML 55.8%
- CSS 37.6%
- JavaScript 6.6%
Converted 3 file(s) from Markdown to KOD (Koder Document) format. KOD is now the default document format on Koder Flow. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| backlog/done | ||
| examples | ||
| site | ||
| src | ||
| tests | ||
| icon-256.png | ||
| icon-512.png | ||
| icon.svg | ||
| koder.toml | ||
| README.kd | ||
Koder Kash (KSH)
Website: https://kash.koder.dev
Criptomoeda implementada em Koder Lang, combinando as melhores características de 26+ criptomoedas FOSS.
Características
| Feature | Inspiração | Descrição |
|---|---|---|
| blockDAG (GHOSTDAG) | Kaspa | Blocos paralelos, 100K+ TPS |
| Pure PoS | Algorand | Consenso eficiente, sem mineração |
| eUTXO | Cardano/Ergo | Modelo de transação estendido |
| Privacidade mandatória | Monero/Zcash | zk-SNARKs + stealth addresses |
| Dandelion++ | Monero | Privacidade de rede (IP) |
| Smart Contracts | Ethereum | VM em Koder Lang |
| Self-amending governance | Tezos/Decred | Governança on-chain |
| Zero-fee | Nano/IOTA | Transações básicas sem taxa |
| Instant finality | Algorand | Confirmação em ~1.5s |
| Cross-chain IBC | Cosmos | Interoperabilidade |
| Blockchain sucinto | Mina Protocol | Chain verificável em 22KB |
| Native asset layer | Cardano/Ravencoin | Tokens sem smart contract |
| Treasury | Dash/Decred | Fundo de desenvolvimento |
| MimbleWimble pruning | Grin | Compactação da chain |
| Subnets | Avalanche | Escalabilidade horizontal |
| Masternodes | Dash | Serviços premium |
Especificações
| Parâmetro | Valor |
|---|---|
| Ticker | KSH |
| Max Supply | 21.000.000.000 |
| Block Time | ~500ms |
| Throughput | 100K+ TPS |
| Finality | ~1.5s |
| Consenso | Pure PoS + blockDAG |
| Hashing | Blake3 + SHA-3 |
| Assinaturas | EdDSA (Ed25519) |
| Privacidade | zk-SNARKs (mandatória) |
| Smart Contracts | Koder Lang VM |
| Portas | P2P: 9400, RPC: 9401 |
Wallet
Koder Kash includes a full-featured wallet in 4 formats, all implemented in Koder Lang:
| Format | File | Description |
|---|---|---|
| CLI | src/wallet/cli.kd | 17 commands (create, send, receive, stake, vote, sign...) |
| Desktop | src/wallet/desktop.kd | Native GUI (GTK4WinUIAppKit), sidebar, 10 views |
| Mobile | src/wallet/mobile.kd | Native (UIKit/Compose), tab nav, QR, biometric auth |
| Web | src/wallet/web.kd | HTTP server (:9402) + embedded SPA |
Shared logic in src/wallet/manager.kd — wallet lifecycle, RPC proxy, address book, events.
Wallet Features
- HD wallet (BIP-32/44 equivalent) with stealth addresses
- Send/receive KSH with zero-knowledge proofs
- Native token management (KSH-20, KSH-721, KSH-1155, KSH-4626)
- Staking (5% APY) and masternode delegation
- Governance voting (proposals, foragainstabstain)
- Smart contract interaction
- Address book, exportimport, darklight theme
- Connects to KSH node via JSON-RPC (localhost:9401)
Structure
src/
├── core/ # Blockchain, blocks, transactions, wallet, crypto
├── consensus/ # PoS, GHOSTDAG, finality
├── privacy/ # zk-SNARKs, stealth addresses, Dandelion++
├── network/ # P2P, JSON-RPC, sync
├── vm/ # Smart contract engine
├── governance/ # Voting, treasury, amendments
├── tokens/ # Native asset layer, KSH-20/721/1155/4626
└── wallet/ # CLI, desktop, mobile, web wallets + manager
Usage
# Run node
koder run src/main.kd
# CLI wallet
koder run src/wallet/cli.kd create mywalletCOMMAND
koder run src/wallet/cli.kd balance
koder run src/wallet/cli.kd send ksh_... 100
# Desktop wallet
koder run src/wallet/desktop.kd
# Mobile wallet
koder run src/wallet/mobile.kd
# Web wallet (serves on :9402)
koder run src/wallet/web.kd
# Tests
koder test tests/
# Build
koder build src/main.kd -o koder-kash
# Examples
koder run examples/send_kash.kd
koder run examples/create_token.kd
koder run examples/smart_contract.kd
koder run examples/staking.kd
koder run examples/governance.kd
koder run examples/privacy.kd
Token Standards
- KSH-20: Token fungível (equivalente ERC-20)
- KSH-721: NFT (equivalente ERC-721)
- KSH-1155: Multi-token (equivalente ERC-1155)
- KSH-4626: Vault tokenizado (equivalente ERC-4626)
API JSON-RPC
# Consultar altura
curl -X POST http://localhost:9401 -d '{"jsonrpc":"2.0","method":"ksh_blockNumber","id":1}'
# Consultar saldo
curl -X POST http://localhost:9401 -d '{"jsonrpc":"2.0","method":"ksh_getBalance","params":["ksh_..."],"id":1}'
# Info do nó
curl -X POST http://localhost:9401 -d '{"jsonrpc":"2.0","method":"ksh_nodeInfo","id":1}'
Licença
MIT