Skip to content

Feature: STARS Cryptocurrency with Browser-Based PoW Mining #1

@xiongchenyu6

Description

@xiongchenyu6

Overview

Implement a real cryptocurrency (STARS) with browser-based Proof-of-Work mining, Ethereum-compatible RPC, and MetaMask integration.

Key Features

  • STARS Token: 1 STARS = 10,000,000,000 starshars
  • Browser Mining: Users mine blocks using Web Workers
  • Bot Liquidity: Genesis bot provides initial funds and generates transactions
  • MetaMask Support: Connect wallets and send transactions
  • 5-Second Blocks: Target block time with difficulty adjustment
  • Mining Rewards: 1 STARS per block to successful miner
  • Transaction Fees: Minimum 1 starshars per transaction

Architecture

  • Browser: Mining nodes (compute PoW)
  • Cloudflare Workers: Verification & consensus layer
  • D1 Database: Immutable ledger storage
  • Bot: Automated transaction generator for chain activity

Technical Requirements

  • New database schema with wallets, enhanced blocks, and transactions
  • Browser-based SHA256 PoW mining with Web Workers
  • Ethereum JSON-RPC endpoints for MetaMask
  • Bot with HD wallet generating random transactions
  • Mining difficulty adjustment algorithm
  • Real-time WebSocket updates
  • Updated block explorer with STARS balances

Acceptance Criteria

  • Users can connect MetaMask to custom network
  • Users can mine blocks and receive STARS rewards
  • Bot sends transactions every second
  • Blocks are mined approximately every 5 seconds
  • Transaction fees are properly collected
  • Block explorer shows STARS balances and transactions
  • Multiple browsers can compete for mining

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions