{"id":47936641,"url":"https://github.com/tangle-network/gadget-workspace","last_synced_at":"2026-04-04T07:44:32.314Z","repository":{"id":268472801,"uuid":"900890764","full_name":"tangle-network/gadget-workspace","owner":"tangle-network","description":"Temp upgrade for the gadget libraries","archived":false,"fork":false,"pushed_at":"2025-01-22T22:20:51.000Z","size":2849,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-04T07:44:30.396Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tangle-network.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-09T16:56:22.000Z","updated_at":"2025-01-22T22:20:55.000Z","dependencies_parsed_at":"2025-01-22T02:31:01.081Z","dependency_job_id":null,"html_url":"https://github.com/tangle-network/gadget-workspace","commit_stats":null,"previous_names":["tangle-network/gadget-workspace"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tangle-network/gadget-workspace","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tangle-network%2Fgadget-workspace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tangle-network%2Fgadget-workspace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tangle-network%2Fgadget-workspace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tangle-network%2Fgadget-workspace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tangle-network","download_url":"https://codeload.github.com/tangle-network/gadget-workspace/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tangle-network%2Fgadget-workspace/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31392186,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T04:26:24.776Z","status":"ssl_error","status_checked_at":"2026-04-04T04:23:34.147Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-04-04T07:44:31.332Z","updated_at":"2026-04-04T07:44:32.293Z","avatar_url":"https://github.com/tangle-network.png","language":"Rust","readme":"# Tangle Network: Gadget SDK\n\nA comprehensive toolkit for building, deploying, and managing blueprints to run on gadgets on the Tangle Network. This workspace provides a collection of Rust crates that enable developers to create and interact with blockchain-based applications.\n\n## Table of Contents\n\n- [Overview](#overview)\n- [Features](#-features)\n- [Project Structure](#-project-structure)\n- [Prerequisites](#-prerequisites)\n- [Getting Started](#-getting-started)\n  - [Installation](#installation)\n  - [Creating Your First Blueprint](#creating-your-first-blueprint)\n  - [Building and Testing](#building-and-testing)\n  - [Deployment](#deployment)\n- [Key Management](#-key-management)\n  - [Key Generation](#key-generation)\n  - [Supported Key Types](#supported-key-types)\n- [Configuration](#-configuration)\n  - [Feature Flags](#feature-flags)\n  - [Environment Variables](#environment-variables)\n- [Core Components](#-core-components)\n  - [Blueprint System](#blueprint-system)\n  - [Network Clients](#network-clients)\n  - [Cryptography](#cryptography)\n  - [Event System](#event-system)\n  - [Storage](#storage)\n- [Development](#-development)\n  - [Testing](#testing)\n- [Contributing](#-contributing)\n- [Support](#-support)\n\n## Overview\n\nTangle Network's Gadget SDK is a modular framework designed to simplify the development and deployment of blockchain applications (blueprints) on the Tangle Network. It provides a comprehensive set of tools and libraries for blockchain interaction, cryptographic operations, and network communication.\n\n## 🌟 Features\n\n- **Blueprint System**\n  - Template-based blueprint creation\n  - Automated deployment workflows\n  - Metadata Management\n\n- **Multi-Chain Support**\n  - Native Tangle Network integration\n  - EigenLayer compatibility\n  - EVM chain support\n  - Cross-chain communication\n\n- **Advanced Cryptography**\n  - Multiple signature schemes (BLS, Ed25519, SR25519)\n  - Secure key management\n\n- **Networking**\n  - P2P communication via libp2p\n  - Custom protocol implementations\n  - NAT traversal\n  - Peer discovery and management\n\n- **Development Tools**\n  - CLI for common operations\n  - Comprehensive testing framework\n  - Performance benchmarking\n  - Debugging utilities\n\n## 🛠 Project Structure\n\n```\ntangle-network-gadget-workspace/\n├── cli/                    # Command-line interface tools\n│   ├── src/               # CLI implementation\n│   └── README.md          # CLI documentation\n├── crates/                # Core functionality crates\n│   ├── benchmarking/      # Performance testing tools\n│   ├── blueprint/         # Blueprint core system\n│   │   ├── manager/       # Blueprint lifecycle management\n│   │   ├── metadata/      # Blueprint metadata handling\n│   │   └── serde/         # Serialization utilities\n│   ├── clients/           # Network clients\n│   │   ├── core/          # Shared client functionality\n│   │   ├── eigenlayer/    # EigenLayer integration\n│   │   ├── evm/          # Ethereum Virtual Machine client\n│   │   └── tangle/       # Tangle Network client\n│   ├── crypto/           # Cryptographic implementations\n│   ├── event-listeners/  # Event handling system\n│   ├── keystore/         # Key management\n│   ├── networking/       # P2P networking\n│   ├── runners/         # Execution environments\n│   └── utils/           # Shared utilities\n└── .config/             # Configuration files\n```\n\n## 📋 Prerequisites\n\n- Rust (nightly-2024-10-13)\n- Cargo\n- OpenSSL development packages\n- CMake (for certain dependencies)\n\nFor Ubuntu/Debian:\n```bash\napt install build-essential cmake libssl-dev pkg-config\n```\n\nFor macOS:\n```bash\nbrew install openssl cmake\n```\n\n## 🚀 Getting Started\n\n### Installation\n\n1. Install the Tangle CLI:\n\n```bash\ncurl --proto '=https' --tlsv1.2 -LsSf https://github.com/tangle-network/gadget/releases/download/cargo-tangle/v0.1.1-beta.7/cargo-tangle-installer.sh | sh\n```\n\nOr install from source:\n\n```bash\ncargo install cargo-tangle --git https://github.com/tangle-network/gadget --force\n```\n\n### Creating Your First Blueprint\n\n1. Create a new blueprint:\n\n```bash\ncargo tangle blueprint create --name my_blueprint\n```\n\n2. Build your blueprint:\n\n```bash\ncargo build\n```\n\n3. Deploy to Tangle Network:\n\n```bash\ncargo tangle blueprint deploy --rpc-url wss://rpc.tangle.tools --package my_blueprint\n```\n\n## 🔑 Key Management\n\n### Key Generation\n\nGenerate cryptographic keys using the CLI:\n\n```bash\ncargo tangle blueprint generate-keys -k \u003cKEY_TYPE\u003e -p \u003cPATH\u003e -s \u003cSURI/SEED\u003e --show-secret\n```\n\n### Supported Key Types\n\n| Key Type | Description | Use Case |\n|----------|-------------|----------|\n| sr25519 | Schnorrkel/Ristretto x25519 | Tangle Network account keys |\n| ecdsa | Elliptic Curve Digital Signature Algorithm | EVM compatible chains |\n| bls_bn254 | BLS signatures on BN254 curve | EigenLayer validators |\n| ed25519 | Edwards-curve Digital Signature Algorithm | General purpose signatures |\n| bls381 | BLS signatures on BLS12-381 curve | Advanced cryptographic operations |\n\n## 🔧 Configuration\n\n### Feature Flags\n\nThe CLI and core libraries support various feature flags for customizing functionality when building blueprints:\n\n| Feature Flag | Description | Components Included |\n|--------------|-------------|-------------------|\n| default | Standard installation | Tangle + EVM support with standard library features |\n| std | Standard library features | Core functionality with std support |\n| tangle | Tangle Network support | Tangle Network client, keystore, and EVM integration |\n| eigenlayer | EigenLayer integration | EigenLayer clients, keystore, and EVM support |\n| evm | EVM chain support | Ethereum JSON ABI, provider, network, and signer support |\n\nThe crypto system supports multiple signature schemes:\n- k256 (ECDSA)\n- sr25519 (Schnorrkel)\n- ed25519\n- BLS (including BN254)\n- Tangle pair signer\n- Substrate crypto (sp-core)\n\nInstallation examples:\n\n```bash\n# Default installation (includes Tangle + EVM)\ncargo install cargo-tangle\n\n# EVM support only\ncargo install cargo-tangle --features evm\n\n# Full installation with EigenLayer support\ncargo install cargo-tangle --features \"tangle,eigenlayer\"\n```\n\n### Environment Variables\n\nRequired environment variables for different operations:\n\n| Variable | Description | Example |\n|----------|-------------|---------|\n| SIGNER | Substrate signer account SURI | `export SIGNER=\"//Alice\"` |\n| EVM_SIGNER | EVM signer private key | `export EVM_SIGNER=\"0xcb6df...\"` |\n| RPC_URL | Tangle Network RPC endpoint | `export RPC_URL=\"wss://rpc.tangle.tools\"` |\n| HTTP_RPC_URL | HTTP RPC endpoint | `export HTTP_RPC_URL=\"https://rpc.tangle.tools\"` |\n\n## 🔨 Core Components\n\n### Blueprint System\n\nThe Blueprint system is the core of the Tangle Network Gadget framework:\n\n- **Template Engine**: Standardized blueprint creation\n- **Metadata Management**: Blueprint information and configuration\n\n### Network Clients\n\nSpecialized clients for different blockchain networks:\n\n- **Tangle Client**: Native integration with Tangle Network\n- **EigenLayer Client**: AVS (Actively Validated Service) integration\n- **EVM Client**: Ethereum and EVM-compatible chain support\n\n### Cryptography\n\nComprehensive cryptographic implementations:\n\n- **Multiple Schemes**: Support for various signature algorithms\n- **Key Management**: Secure key storage and handling\n\n### Event System\n\nRobust event handling system:\n\n- **Event Listeners**: Custom event monitoring\n- **Async Processing**: Non-blocking event handling\n- **Filtering**: Configurable event filtering\n- **Error Handling**: Robust error recovery\n\n### Storage\n\nFlexible storage solutions:\n\n- **Local Database**: Efficient local storage\n- **Key-Value Store**: Fast key-value operations\n- **File System**: Secure file storage\n- **Remote Storage**: Cloud storage integration (e.g., AWS, GCP, Ledger)\n\n## 🧪 Development\n\n### Testing\n\nThe framework includes comprehensive testing tools:\n\n```bash\n# Run all tests\ncargo test\n\n# Run specific test suite\ncargo test --package my_blueprint\n\n# Run with logging\nRUST_LOG=gadget=debug cargo test\n```\n\n## 🤝 Contributing\n\nWe welcome contributions! Please see our [Contributing Guidelines](CONTRIBUTING.md) for details on how to get started.\n\n## 📮 Support\n\n- **Issues**: Use GitHub Issues for bug reports and feature requests\n- **Discussions**: Join our community discussions on GitHub\n- **Discord**: Join our [Discord server](https://discord.com/invite/cv8EfJu3Tn)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftangle-network%2Fgadget-workspace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftangle-network%2Fgadget-workspace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftangle-network%2Fgadget-workspace/lists"}