feat: add marketplace metrics, privacy features, and service registry endpoints

- Add Prometheus metrics for marketplace API throughput and error rates with new dashboard panels
- Implement confidential transaction models with encryption support and access control
- Add key management system with registration, rotation, and audit logging
- Create services and registry routers for service discovery and management
- Integrate ZK proof generation for privacy-preserving receipts
- Add metrics instru
This commit is contained in:
oib
2025-12-22 10:33:23 +01:00
parent d98b2c7772
commit c8be9d7414
260 changed files with 59033 additions and 351 deletions

View File

@ -0,0 +1,49 @@
---
title: Creating Jobs
description: Learn how to create and submit AI jobs
---
# Creating Jobs
Jobs are the primary way to execute AI workloads on the AITBC platform.
## Job Types
- **AI Inference**: Run pre-trained models
- **Model Training**: Train new models
- **Data Processing**: Process datasets
- **Custom**: Custom computations
## Job Specification
A job specification includes:
- Model configuration
- Input/output formats
- Resource requirements
- Pricing constraints
## Example
```yaml
name: "image-classification"
type: "ai-inference"
model:
type: "python"
entrypoint: "model.py"
```
## Submitting Jobs
Use the CLI or API to submit jobs:
```bash
aitbc job submit job.yaml
```
## Monitoring
Track job progress through:
- CLI commands
- Web interface
- API endpoints
- WebSocket streams

View File

@ -0,0 +1,46 @@
---
title: Explorer
description: Using the AITBC blockchain explorer
---
# Explorer
The AITBC explorer allows you to browse and search the blockchain for transactions, jobs, and other activities.
## Features
### Transaction Search
- Search by transaction hash
- Filter by address
- View transaction details
### Job Tracking
- Monitor job status
- View job history
- Analyze performance
### Analytics
- Network statistics
- Volume metrics
- Activity charts
## Using the Explorer
### Web Interface
Visit [https://explorer.aitbc.io](https://explorer.aitbc.io)
### API Access
```bash
# Get transaction
curl https://api.aitbc.io/v1/transactions/{tx_hash}
# Get job details
curl https://api.aitbc.io/v1/jobs/{job_id}
```
## Advanced Features
- Real-time updates
- Custom dashboards
- Data export
- Alert notifications

View File

@ -0,0 +1,46 @@
---
title: Marketplace
description: Using the AITBC marketplace
---
# Marketplace
The AITBC marketplace connects job creators with miners who can execute their AI workloads.
## How It Works
1. **Job Creation**: Users create jobs with specific requirements
2. **Offer Matching**: The marketplace finds suitable miners
3. **Execution**: Miners execute the jobs and submit results
4. **Payment**: Automatic payment upon successful completion
## Finding Services
Browse available services:
- By job type
- By price range
- By miner reputation
- By resource requirements
## Pricing
Dynamic pricing based on:
- Market demand
- Resource availability
- Miner reputation
- Job complexity
## Creating Offers
As a miner, you can:
- Set your prices
- Specify job types
- Define resource limits
- Build reputation
## Safety Features
- Escrow payments
- Dispute resolution
- Reputation system
- Cryptographic proofs

View File

@ -0,0 +1,27 @@
---
title: User Guide Overview
description: Learn how to use AITBC as a user
---
# User Guide Overview
Welcome to the AITBC user guide! This section will help you understand how to interact with the AITBC platform.
## What You'll Learn
- Creating and submitting AI jobs
- Using the marketplace
- Managing your wallet
- Monitoring your jobs
- Understanding receipts and proofs
## Getting Started
If you're new to AITBC, start with the [Quickstart Guide](../getting-started/quickstart.md).
## Navigation
- [Creating Jobs](creating-jobs.md) - Learn to submit AI workloads
- [Marketplace](marketplace.md) - Buy and sell AI services
- [Explorer](explorer.md) - Browse the blockchain
- [Wallet Management](wallet-management.md) - Manage your funds

View File

@ -0,0 +1,65 @@
---
title: Wallet Management
description: Managing your AITBC wallet
---
# Wallet Management
Your AITBC wallet allows you to store, send, and receive AITBC tokens and interact with the platform.
## Creating a Wallet
### New Wallet
```bash
aitbc wallet create
```
### Import Existing
```bash
aitbc wallet import <private_key>
```
## Wallet Operations
### Check Balance
```bash
aitbc wallet balance
```
### Send Tokens
```bash
aitbc wallet send <address> <amount>
```
### Transaction History
```bash
aitbc wallet history
```
## Security
- Never share your private key
- Use a hardware wallet for large amounts
- Enable two-factor authentication
- Keep backups in secure locations
## Staking
Earn rewards by staking your tokens:
```bash
aitbc wallet stake <amount>
```
## Backup
Always backup your wallet:
```bash
aitbc wallet backup --output wallet.backup
```
## Recovery
Restore from backup:
```bash
aitbc wallet restore --input wallet.backup
```