Blockchain Assisted Contribution Network
Incentivize Open Source Contributions with Bitcoin & Solana Rewards
BACON is a cutting-edge blockchain-based token system designed to incentivize engagement and contributions within open-source ecosystems. By integrating with Bitcoin (via Runes protocol) and Solana blockchains, BACON introduces a transparent, secure, and gamified environment that rewards developers and contributors for their efforts.
This is a Cloudflare Worker-based application with the following structure:
BLT-Rewards/
โโโ .env.example # Environment variables template
โโโ LICENSE # License file
โโโ package.json # Node.js dependencies
โโโ README.md # This file
โโโ setup_bacon_node.sh # Setup script for BACON node
โโโ wrangler.toml # Cloudflare Worker configuration
โโโ public/ # Static HTML pages and assets
โ โโโ static/ # Static assets
โ โ โโโ images/ # Image files
โ โ โโโ logo.png # BACON logo
โ โโโ _config.yml # Jekyll configuration
โ โโโ README.md # Public documentation readme
โ โโโ index.html # Main landing page
โ โโโ getting-started.html # Getting started guide
โ โโโ api-reference.html # API documentation
โ โโโ bitcoin-integration.html # Bitcoin integration guide
โ โโโ solana-integration.html # Solana integration guide
โ โโโ github-actions.html # GitHub Actions guide
โ โโโ security.html # Security documentation
โ โโโ styles.css # Tailwind CSS styles
โ โโโ script.js # Client-side JavaScript
โโโ src/ # Python worker source code
โ โโโ index.py # Main Cloudflare Worker entry point
โโโ ord-server/ # Bitcoin Ordinals/Runes server
โโโ .env.example # Ord server environment variables
โโโ example-split.yaml # Example split configuration
โโโ ord-api.py # Ord API server
โโโ ord-flask.service # Flask service configuration
โโโ requirements.txt # Python dependencies
This project uses Cloudflare Workers with Python runtime for dynamic API endpoints and Cloudflareโs built-in asset serving for static files:
public/ are automatically served by Cloudflareโs asset handling (configured in wrangler.toml)open(). Static files are served directly by Cloudflare.git clone https://github.com/OWASP-BLT/BLT-Rewards.git
cd BLT-Rewards
npm install
cp .env.example .env
# Edit .env with your configuration
npm run dev
npm run dev - Start development servernpm run deploy - Deploy to productionnpm run deploy:dev - Deploy to development environmentDeploy to Cloudflare Workers:
npm run deploy
For development environment:
npm run deploy:dev
The documentation is available as static HTML pages in the public/ directory:
Visit the main documentation site for a complete overview.
For security concerns and best practices, please refer to our Security Documentation or contact the OWASP BLT team.
Important: Never commit private keys or sensitive credentials to the repository. Use environment variables and GitHub Secrets for sensitive data.
This project is licensed under the terms specified in the LICENSE file.
Contributions are welcome! Please feel free to submit a Pull Request.
Made with โค๏ธ by the OWASP BLT Team