BLT-Rewards

๐Ÿฅ“ BLT-Rewards (BACON)

Blockchain Assisted Contribution Network

Incentivize Open Source Contributions with Bitcoin & Solana Rewards

๐Ÿš€ Overview

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.

๐Ÿ“‹ Project Structure

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

๐Ÿ› ๏ธ Development

Prerequisites

Architecture Notes

This project uses Cloudflare Workers with Python runtime for dynamic API endpoints and Cloudflareโ€™s built-in asset serving for static files:

Setup

  1. Clone the repository:
    git clone https://github.com/OWASP-BLT/BLT-Rewards.git
    cd BLT-Rewards
    
  2. Install dependencies:
    npm install
    
  3. Copy environment variables:
    cp .env.example .env
    # Edit .env with your configuration
    
  4. Start development server:
    npm run dev
    

Available Scripts

๐ŸŒ Deployment

Deploy to Cloudflare Workers:

npm run deploy

For development environment:

npm run deploy:dev

๐Ÿ”— Features

๐Ÿ“š Documentation

The documentation is available as static HTML pages in the public/ directory:

Visit the main documentation site for a complete overview.

๐Ÿ” Security

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.

๐Ÿ“„ License

This project is licensed under the terms specified in the LICENSE file.

๐Ÿค Contributing

Contributions are welcome! Please feel free to submit a Pull Request.


Made with โค๏ธ by the OWASP BLT Team