Files
aitbc/apps/blockchain-node
oib 329b3beeba ```
feat: add SQLModel relationships, fix ZK verifier circuit integration, and complete Stage 19-20 documentation

- Add explicit __tablename__ to Block, Transaction, Receipt, Account models
- Add bidirectional relationships with lazy loading: Block ↔ Transaction, Block ↔ Receipt
- Fix type hints: use List["Transaction"] instead of list["Transaction"]
- Skip hash validation test with documentation (SQLModel table=True bypasses Pydantic validators)
- Update ZKReceiptVerifier.sol to match receipt_simple circuit (
2026-01-24 18:34:37 +01:00
..
```
2026-01-24 14:44:51 +01:00
```
2026-01-24 18:34:37 +01:00
```
2026-01-24 14:44:51 +01:00
```
2026-01-24 18:34:37 +01:00
```
2026-01-24 18:34:37 +01:00
```
2025-12-28 21:05:53 +01:00
```
2025-12-28 21:05:53 +01:00

Blockchain Node

Purpose & Scope

Minimal asset-backed blockchain node that validates compute receipts and mints AIT tokens as described in docs/bootstrap/blockchain_node.md.

Status

Scaffolded. Implementation pending per staged roadmap.

Devnet Tooling

  • scripts/make_genesis.py — Generate a deterministic devnet genesis file (data/devnet/genesis.json).
  • scripts/keygen.py — Produce throwaway devnet keypairs (printed or written to disk).
  • scripts/devnet_up.sh — Launch the blockchain node and RPC API with a freshly generated genesis file.

Quickstart

cd apps/blockchain-node
python scripts/make_genesis.py --force
bash scripts/devnet_up.sh

The script sets PYTHONPATH=src and starts the proposer loop plus the FastAPI app (via uvicorn). Press Ctrl+C to stop the devnet.