OWASP-BLT/BLT-Rewards

GitHub: OWASP-BLT/BLT-Rewards

基于 Bitcoin 和 Solana 的开源贡献激励系统,通过区块链代币奖励开发者和安全研究员的贡献。

Stars: 7 | Forks: 12

# 🥓 BLT-Rewards (BACON) **区块链辅助贡献网络** 通过 Bitcoin 和 Solana 奖励激励开源贡献 ## 🚀 概述 BACON 是一个前沿的基于区块链的代币系统,旨在激励开源生态系统内的参与和贡献。通过与 Bitcoin(通过 Runes 协议)和 Solana 区块链集成,BACON 引入了一个透明、安全和游戏化的环境,奖励开发者和贡献者的付出。 ## 📋 项目结构 这是一个基于 Cloudflare Worker 的应用程序,结构如下: ``` 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 ``` ## 🛠️ 开发 ### 前置条件 - Node.js (v18 或更高版本) - npm 或 yarn - Cloudflare 账户 - Wrangler CLI ### 架构说明 本项目使用 **Cloudflare Workers Python 运行时** 处理动态 API 端点,并使用 **Cloudflare 内置资源服务** 处理静态文件: - **静态资源**:`public/` 中的所有文件由 Cloudflare 的资源处理功能自动服务(在 `wrangler.toml` 中配置) - **Python Worker**:处理 API 路由和重定向 - 不使用文件 I/O 操作 - **无文件读取**:Cloudflare Workers 运行时不支持传统的文件操作,如 `open()`。静态文件由 Cloudflare 直接服务。 ### 设置 1. 克隆仓库: ``` git clone https://github.com/OWASP-BLT/BLT-Rewards.git cd BLT-Rewards ``` 2. 安装依赖: ``` npm install ``` 3. 复制环境变量: ``` cp .env.example .env # 使用你的配置编辑 .env ``` 4. 启动开发服务器: ``` npm run dev ``` ### 可用脚本 - `npm run dev` - 启动开发服务器 - `npm run deploy` - 部署到生产环境 - `npm run deploy:dev` - 部署到开发环境 ## 🌐 部署 部署到 Cloudflare Workers: ``` npm run deploy ``` 对于开发环境: ``` npm run deploy:dev ``` ## ✨ 功能 - ✨ 多链支持 (Bitcoin & Solana) - 🔒 安全且透明 - 🎮 游戏化 - 🤖 GitHub Actions 集成 - ⚡ 无服务器架构 (Cloudflare Workers) ## 📚 文档 文档以静态 HTML 页面的形式提供,位于 `public/` 目录中: - [**快速入门**](public/getting-started.html) - 安装和设置指南 - [**Bitcoin 集成**](public/bitcoin-integration.html) - Bitcoin & Runes 协议集成 - [**Solana 集成**](public/solana-integration.html) - Solana 区块链集成 - [**GitHub Actions**](public/github-actions.html) - CI/CD 自动化设置 - [**API 参考**](public/api-reference.html) - 完整的 API 文档 - [**安全性**](public/security.html) - 安全最佳实践和注意事项 访问[主文档站点](public/index.html)获取完整概览。 ## 🔐 安全 有关安全问题和最佳实践,请参阅我们的[安全文档](public/security.html)或联系 OWASP BLT 团队。 **重要提示:** 切勿将私钥或敏感凭证提交到仓库。请使用环境变量和 GitHub Secrets 管理敏感数据。 ## 📄 许可证 本项目采用 LICENSE 文件中指定的条款进行许可。 ## 🤝 贡献 欢迎贡献!请在开始之前阅读我们的 [**CONTRIBUTING.md**](CONTRIBUTING.md),了解完整的本地设置指南、环境变量说明、分支约定和 PR 指南。 ## 🔗 链接 - [OWASP BLT 项目](https://github.com/OWASP-BLT) - [BLT 主仓库](https://github.com/OWASP-BLT/BLT) - [文档站点](public/index.html) - [GitHub 仓库](https://github.com/OWASP-BLT/BLT-Rewards) 由 OWASP BLT 团队用 ❤️ 制作
标签:API, BACON, BLT, BLT-Rewards, Gamification, GitHub Actions, MITM代理, Python, Runes协议, Solana, Web3, 代币系统, 加密货币, 区块链, 去中心化, 后端开发, 后端开发, 后端开发, 安全, 开发者奖励, 开源激励, 数字资产, 无后门, 无服务器, 比特币, 游戏化, 程序员工具, 自动笔记, 贡献追踪, 超时处理, 跨链, 逆向工具