feat: add SQLCipher database encryption support and consolidate agent documentation
Some checks failed
Blockchain Synchronization Verification / sync-verification (push) Failing after 3s
CLI Tests / test-cli (push) Failing after 3s
Cross-Chain Functionality Tests / test-cross-chain-sync (push) Successful in 2s
Cross-Chain Functionality Tests / test-cross-chain-transactions (push) Successful in 3s
Cross-Chain Functionality Tests / test-cross-chain-bridge (push) Has been skipped
Cross-Chain Functionality Tests / test-multi-chain-consensus (push) Successful in 2s
Cross-Chain Functionality Tests / aggregate-results (push) Has been skipped
Deploy to Testnet / deploy-testnet (push) Successful in 1m12s
Documentation Validation / validate-docs (push) Failing after 8s
Documentation Validation / validate-policies-strict (push) Successful in 3s
Integration Tests / test-service-integration (push) Successful in 2m6s
Multi-Chain Island Architecture Tests / test-multi-chain-island (push) Successful in 2s
Multi-Node Blockchain Health Monitoring / health-check (push) Failing after 4s
P2P Network Verification / p2p-verification (push) Successful in 4s
Package Tests / Python package - aitbc-agent-sdk (push) Successful in 32s
Package Tests / Python package - aitbc-core (push) Successful in 14s
Package Tests / Python package - aitbc-crypto (push) Successful in 12s
Package Tests / Python package - aitbc-sdk (push) Successful in 9s
Package Tests / JavaScript package - aitbc-sdk-js (push) Successful in 8s
Package Tests / JavaScript package - aitbc-token (push) Successful in 17s
Python Tests / test-python (push) Successful in 15s
Security Scanning / security-scan (push) Successful in 27s
Node Failover Simulation / failover-test (push) Successful in 7s
Multi-Node Stress Testing / stress-test (push) Successful in 6s
Cross-Node Transaction Testing / transaction-test (push) Successful in 4s
Some checks failed
Blockchain Synchronization Verification / sync-verification (push) Failing after 3s
CLI Tests / test-cli (push) Failing after 3s
Cross-Chain Functionality Tests / test-cross-chain-sync (push) Successful in 2s
Cross-Chain Functionality Tests / test-cross-chain-transactions (push) Successful in 3s
Cross-Chain Functionality Tests / test-cross-chain-bridge (push) Has been skipped
Cross-Chain Functionality Tests / test-multi-chain-consensus (push) Successful in 2s
Cross-Chain Functionality Tests / aggregate-results (push) Has been skipped
Deploy to Testnet / deploy-testnet (push) Successful in 1m12s
Documentation Validation / validate-docs (push) Failing after 8s
Documentation Validation / validate-policies-strict (push) Successful in 3s
Integration Tests / test-service-integration (push) Successful in 2m6s
Multi-Chain Island Architecture Tests / test-multi-chain-island (push) Successful in 2s
Multi-Node Blockchain Health Monitoring / health-check (push) Failing after 4s
P2P Network Verification / p2p-verification (push) Successful in 4s
Package Tests / Python package - aitbc-agent-sdk (push) Successful in 32s
Package Tests / Python package - aitbc-core (push) Successful in 14s
Package Tests / Python package - aitbc-crypto (push) Successful in 12s
Package Tests / Python package - aitbc-sdk (push) Successful in 9s
Package Tests / JavaScript package - aitbc-sdk-js (push) Successful in 8s
Package Tests / JavaScript package - aitbc-token (push) Successful in 17s
Python Tests / test-python (push) Successful in 15s
Security Scanning / security-scan (push) Successful in 27s
Node Failover Simulation / failover-test (push) Successful in 7s
Multi-Node Stress Testing / stress-test (push) Successful in 6s
Cross-Node Transaction Testing / transaction-test (push) Successful in 4s
- Add SQLCipher encryption for ait-mainnet database with configurable flag - Add db_encryption_enabled and db_encryption_key_path config settings - Implement encryption key loading and PRAGMA key setup via connection events - Add shutdown_db function for proper database cleanup - Export middleware classes in aitbc/__init__.py - Fix import path in sync.py for settings - Remove duplicate agent documentation from docs
This commit is contained in:
@@ -11,6 +11,24 @@ from .middleware import (
|
||||
ErrorHandlerMiddleware,
|
||||
)
|
||||
|
||||
# Re-export constants for compatibility
|
||||
from .constants import (
|
||||
DATA_DIR,
|
||||
LOG_DIR,
|
||||
CONFIG_DIR,
|
||||
REPO_DIR,
|
||||
KEYSTORE_DIR,
|
||||
BLOCKCHAIN_DATA_DIR,
|
||||
MARKETPLACE_DATA_DIR,
|
||||
ENV_FILE,
|
||||
NODE_ENV_FILE,
|
||||
BLOCKCHAIN_RPC_PORT,
|
||||
BLOCKCHAIN_P2P_PORT,
|
||||
AGENT_COORDINATOR_PORT,
|
||||
MARKETPLACE_PORT,
|
||||
PACKAGE_VERSION,
|
||||
)
|
||||
|
||||
__all__ = [
|
||||
"logging",
|
||||
"configure_logging",
|
||||
@@ -19,4 +37,18 @@ __all__ = [
|
||||
"PerformanceLoggingMiddleware",
|
||||
"RequestValidationMiddleware",
|
||||
"ErrorHandlerMiddleware",
|
||||
"DATA_DIR",
|
||||
"LOG_DIR",
|
||||
"CONFIG_DIR",
|
||||
"REPO_DIR",
|
||||
"KEYSTORE_DIR",
|
||||
"BLOCKCHAIN_DATA_DIR",
|
||||
"MARKETPLACE_DATA_DIR",
|
||||
"ENV_FILE",
|
||||
"NODE_ENV_FILE",
|
||||
"BLOCKCHAIN_RPC_PORT",
|
||||
"BLOCKCHAIN_P2P_PORT",
|
||||
"AGENT_COORDINATOR_PORT",
|
||||
"MARKETPLACE_PORT",
|
||||
"PACKAGE_VERSION",
|
||||
]
|
||||
|
||||
30
packages/py/aitbc-core/src/aitbc/constants.py
Normal file
30
packages/py/aitbc-core/src/aitbc/constants.py
Normal file
@@ -0,0 +1,30 @@
|
||||
"""
|
||||
AITBC Common Constants
|
||||
Centralized constants for AITBC system paths and configuration
|
||||
"""
|
||||
|
||||
from pathlib import Path
|
||||
|
||||
# AITBC System Paths
|
||||
DATA_DIR = Path("/var/lib/aitbc")
|
||||
CONFIG_DIR = Path("/etc/aitbc")
|
||||
LOG_DIR = Path("/var/log/aitbc")
|
||||
REPO_DIR = Path("/opt/aitbc")
|
||||
|
||||
# Common subdirectories
|
||||
KEYSTORE_DIR = DATA_DIR / "keystore"
|
||||
BLOCKCHAIN_DATA_DIR = DATA_DIR / "data" / "ait-mainnet"
|
||||
MARKETPLACE_DATA_DIR = DATA_DIR / "data" / "marketplace"
|
||||
|
||||
# Configuration files
|
||||
ENV_FILE = CONFIG_DIR / ".env"
|
||||
NODE_ENV_FILE = CONFIG_DIR / "node.env"
|
||||
|
||||
# Default ports
|
||||
BLOCKCHAIN_RPC_PORT = 8006
|
||||
BLOCKCHAIN_P2P_PORT = 7070
|
||||
AGENT_COORDINATOR_PORT = 9001
|
||||
MARKETPLACE_PORT = 8081
|
||||
|
||||
# Package version
|
||||
PACKAGE_VERSION = "0.3.0"
|
||||
Reference in New Issue
Block a user