Home AI Infrastructure Blockchain Architecture Security Framework DAO Governance Roadmap Connect Wallet →
Technology Documentation · AiBlockcore Infrastructure

Technical Architecture & Infrastructure

A complete overview of the AI systems, blockchain architecture, security framework, DAO governance layer, and the full AiBlockcore technical stack.

PHP 8.2+
Core Runtime
BSC / BEP-20
Blockchain
WCV2
Wallet Protocol
AES-256
Encryption Standard
99.98%
Uptime SLA Target
0-Trust
Security Model

AI Infrastructure

AiBlockcore embeds machine learning and AI-driven automation directly into the protocol layer. Intelligence is not a feature — it is foundational, operating across every ecosystem module in real time.

Predictive Analytics

Statistical modelling over on-chain event streams for forecasting and trend detection.

Intelligent Automation

Self-adapting automation that replaces static rules with continuously-learned models.

Risk Monitoring

Continuous anomaly detection using supervised and unsupervised classification models.

Data Processing Pipeline

High-throughput ingestion, normalisation, and feature extraction from blockchain events.

Dynamic Optimization

Adaptive parameter tuning to maintain performance, security, and efficiency at scale.

Decision Support Engine

Context-aware recommendations embedded natively in governance and operational workflows.

AI Config Reference // AI Engine — Core Configuration Schema { "ai_engine": { "mode": "autonomous", "risk_threshold": 0.78, "prediction_depth": 72, // hours "sampling_interval":30, // seconds "model_version": "aibc-ml-v3", "anomaly_detection": "enabled" } }

Blockchain Architecture

Built natively on Binance Smart Chain (BSC), AiBlockcore leverages the EVM-compatible, high-throughput blockchain for immutable transaction recording, smart contract execution, and trustless asset management.

Application Layer
PHP 8.2+ server-side rendering, REST-like API endpoints, wallet integration, CSRF/session security
Protocol Layer
WalletConnect v2, MetaMask injected provider, ERC-20 ABI, signature verification
Blockchain Layer
Binance Smart Chain (Chain ID: 56), BEP-20 USDT, BSC RPC, on-chain txhash verification
Infrastructure Layer
BSC full node RPC, database with indexed event log, cron processor, rate limiter
ParameterValueNotes
NetworkBinance Smart Chain (BSC)Mainnet
Chain ID56EVM-compatible
RPC Endpointbsc-dataseed.binance.orgPublic node
AssetUSDT (BEP-20)Tether, 18 decimals
USDT Contract0x55d398...3197955Official BSC USDT
Block Time~3 secondsAverage
Wallet SDKWalletConnect v2 / Reown AppKit100+ wallets supported
ethers.js5.7.xTransaction signing & RPC

Transaction Verification Flow

1
User initiates USDT transfer from connected BSC wallet via ethers.js

Client sends `transfer()` call to USDT contract — wallet signs on-device

2
Transaction hash returned to client; client POSTs txhash + amount to server

Server validates format, checks for duplicate txhash in `deposits` table

3
Server queries BSC RPC for transaction receipt

`eth_getTransactionReceipt` — confirms inclusion in a block

4
Server decodes ERC-20 Transfer event log from receipt

Validates: `to == treasury_wallet`, `amount == expected`, `contract == USDT_CONTRACT`

5
On success: deposit recorded, investment package created, balances updated

All DB operations wrapped in a PDO transaction — atomic and rollback-safe


Decentralized Identity

AiBlockcore uses cryptographic wallet signatures as the sole authentication mechanism. No email addresses. No passwords. No centralized identity store. Your wallet is your identity.

1
Wallet Connection

User connects a BSC wallet via MetaMask injection or WalletConnect v2 QR/deep-link.

2
Nonce Generation

Server generates a one-time cryptographic nonce bound to the wallet address and session.

3
Message Signing

User signs a human-readable login message containing the nonce — entirely on-device.

4
Server Verification

Server uses `ecrecover` to derive the signer address from the signature and nonce.

5
Session Established

If the recovered address matches, a secure PHP session is issued with `SameSite=Strict, HttpOnly` cookies.

6
UID Assignment

New wallets receive a unique `AB00001`-format UID. Returning wallets resume their existing session.

Auth Flow // Server-side wallet signature verification $nonce = "AiBlockcore Login: " . $nonce_value; $signer = ecrecover($nonce, $signature); $verified= strtolower($signer) === strtolower($wallet); // Session issued only when $verified === true

Security Framework

AiBlockcore's security model is zero-trust by default. Every input is validated. Every privilege is explicitly granted. Every transaction is independently verified on-chain.

CSRF Protection

Per-request CSRF tokens injected as meta tags and validated on all state-changing server requests.

Rate Limiting

Per-IP and per-wallet request throttling persisted in the `rate_limits` table with automatic cleanup.

SQL Injection Prevention

100% PDO prepared statements. No dynamic query building. No raw string interpolation in SQL.

XSS Prevention

All output passed through `htmlspecialchars()` via the `h()` helper. Content-Security-Policy headers enforced.

Session Security

HttpOnly, SameSite=Strict, Secure cookies. 2-hour session lifetime. Custom session name `aibc_sess`.

On-Chain Verification

Transaction receipts fetched directly from BSC RPC. Amount, recipient, and contract address all verified server-side.

Sensitive File Protection

`.htaccess` blocks direct HTTP access to `config.php`, `functions.php`, and `cron.php`.

Security Headers

X-Content-Type-Options, X-Frame-Options, X-XSS-Protection, Referrer-Policy, Permissions-Policy all set via `.htaccess`.

ControlImplementationStandard
Input ValidationServer-side on all POST parametersOWASP A03
AuthCryptographic wallet signatureEIP-191
SessionPHP sessions, HttpOnly, SameSite=StrictOWASP A07
DatabasePDO prepared statements onlyOWASP A03
Output Encodinghtmlspecialchars on all user-derived outputOWASP A03
CSRFSynchronizer token patternOWASP A01
Rate LimitingDB-persisted per-IP throttleOWASP A04
Duplicate PreventionUNIQUE DB constraints on txhash, cron runsData Integrity

DAO Governance

The AiBlockcore DAO layer enables wallet-verified participants to engage in decentralized governance, protocol decisions, and ecosystem coordination — fully on-chain and transparent.

Governance Voting

Proposal creation and voting mechanisms recorded on-chain for full auditability.

Membership Protocol

DAO membership verified via on-chain USDT transaction. Non-custodial and trustless.

Treasury Management

Decentralized treasury with multi-signature controls and transparent fund allocation.

Protocol Upgrades

Community-driven proposal and ratification process for ecosystem parameter changes.

Decentralized Coordination

Cross-participant decision-making without central coordinators or intermediaries.

On-Chain Reporting

All DAO activities, votes, and outcomes accessible on the public BSC ledger.

DAO Schema -- DAO membership table (simplified) CREATE TABLE dao_members ( id INT AUTO_INCREMENT PRIMARY KEY, user_uid VARCHAR(10) NOT NULL, txhash VARCHAR(66) UNIQUE NOT NULL, amount_usdt DECIMAL(18,2) NOT NULL DEFAULT 2500.00, status TINYINT(1) DEFAULT 1, joined_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP );

Smart Automation

AiBlockcore automates all time-sensitive operations via a secured cron processor. Automation is duplicate-proof, rollback-safe, and independently auditable.

1
ROI Processing

All active investment packages processed daily. UNIQUE constraint on `(package_id, roi_date)` prevents duplicate crediting.

2
Qualification Evaluation

Team structure and leg volumes evaluated nightly; salary level status updated atomically.

3
Matrix Reward Distribution

Partner matrix positions evaluated and rewarded per cycle. Duplicate guard via `(matrix_id, earn_date)`.

4
DAO Daily Rewards

Active DAO members credited to their DAO wallet daily. `(user_uid, earn_date, earn_type)` UNIQUE prevents double-runs.

5
Team Business Cache

Recursive BFS team volume calculations cached for performance. Refreshed each cron cycle.

6
Cron Execution Logs

Every cron type timestamped in `cron_log` with `(cron_date, cron_type)` UNIQUE — prevents double-execution across instances.

Cron Invocation # Secure daily cron job — all 6 automation types 0 0 * * * curl -s "https://yourdomain.com/cron?secret=CRON_SECRET" # Or via HTTP header: 0 0 * * * curl -s -H "X-Cron-Secret: CRON_SECRET" "https://yourdomain.com/cron"

Technical Roadmap

A phased, milestone-driven development plan with clear technical deliverables for each stage of the AiBlockcore infrastructure build-out.

PhaseMilestoneDeliverablesStatus
Phase 1 Core Infrastructure Database schema, PHP 8.2+ stack, security baseline, business logic layer Complete
Phase 2 Wallet Integration WalletConnect v2, MetaMask, BSC RPC, USDT verification, clean-URL routing Complete
Phase 3 DAO Expansion DAO membership contract, governance protocol, DAO treasury module Live
Phase 4 AI Ecosystem Deployment ML pipeline integration, predictive analytics API, AI decision engine go-live Upcoming
Phase 5 Cross-Chain Integration ETH / Polygon bridge, multi-chain asset routing, cross-chain identity resolution Upcoming
Phase 6 Global Scaling CDN-distributed infrastructure, open-source SDK, enterprise API gateway Planned

Audit & Compliance Framework

All platform operations are designed for transparency and independent verifiability. On-chain records are permanent and publicly accessible on BSC block explorers.

On-Chain Audit Trail

Every deposit transaction is permanently recorded on BSC. Anyone can independently verify amounts, addresses, and block confirmations via BscScan.

Database Audit Log

Unified `transactions` ledger records every credit and debit. Immutable reference for all balance operations.

Cron Execution Logs

Timestamped cron run history with success/failure status. `cron_log` table enables full automation audit trail.

Security Event Logging

Rate limit events and failed authentication attempts logged with IP addresses for security review.

Open Protocol Specs

Core API endpoints, DB schema, and wallet integration specs documented and available for technical review.

Zero-Duplication Design

UNIQUE database constraints prevent duplicate cron processing, duplicate deposits, and duplicate reward credits at the DB level.


Ready to Connect?

Connect your BSC wallet and access the full AiBlockcore ecosystem.