Architecture Details

Core Architectural Principle

Silsilat is built around the principle of Accountable Automation — every decision made by an AI or agent is observable, auditable, and anchored to a verifiable event on-chain.

The architecture unites AI, DLT, and liquidity protocols through three core primitives:

  1. Agents — autonomous evaluators for valuation, compliance, and liquidity actions.

  2. Topics — Hedera Consensus Service (HCS) channels that record immutable event logs.

  3. Artifacts — IPFS-stored bundles that preserve full trace evidence and model context.

Together, these form a verifiable trust loop:

Event → Evaluation → Artifact → Consensus → Action.


High-Level Architecture Diagram


Module Breakdown

A. Agent Layer

Agents are independent Python services, each running within its own container or smart node environment. They communicate through HCS messages and external APIs.

Agent

Function

Data Source

Output

Gold Evaluator Agent

Calculates loan-to-value (LTV) ratio and haircut

MetalPriceAPI, FastForex, Policy registry

JSON payload with valuation and trace ID

Policy Agent

Applies KYC, AML, and Shariah rules

AML/KYC database, Regulatory schemas

Compliance pass/fail + reason codes

Liquidity Agent

Executes pool operations and manages token flows

Liquidity pool smart node

Transaction confirmation, pool metrics

Audit Agent

Monitors all traces and publishes integrity proofs

IPFS, Arize Phoenix

Hash proof and verification event

Override Agent

Allows human intervention on specific decisions

Admin dashboard

Updated decision record on HCS

Each agent uses OpenTelemetry tracing and sends observability data to Arize Phoenix for model performance monitoring.


B. API Layer

Silsilat exposes a secure RESTful API built with FastAPI (Python) and connected via Hedera SDK clients.

Example endpoints:

Each endpoint enforces:

  • JWT-based authentication

  • Role-based access (pawnshop / regulator / investor)

  • Rate limits and HMAC-signed payloads


C. HCS Topic Management

Each agent subscribes to specific Hedera Consensus Topics, as configured in the .env.local file.

Example configuration:

Message structure (JSON):

All messages are signed by the sending node and can be verified via Hedera SDK’s public key validation.


D. IPFS Artifact Schema

Each AI inference or policy validation generates an artifact bundle stored in IPFS:

Only the IPFS CID and hash are recorded on Hedera; raw data can be retrieved by authorized actors using the CID reference.


E. Liquidity Module

The Liquidity Agent and Liquidity Pool Smart Node manage tokenized asset flow.

Lifecycle:

  1. Pawnshop mints a SAG token.

  2. Liquidity Pool automatically buys SAG token for stablecoin (e.g., USDC, Hbar, or MYR-t).

  3. Investors deposit liquidity and receive LQT tokens representing pool share.

  4. On maturity, SAG is redeemed and burned.

  5. LQT holders receive yield and can withdraw.


🛡️ 4️⃣ Security and Compliance Controls

Control Layer

Mechanism

Identity & Authentication

DID-based identity registry (HCS-11), JWT tokens

Data Integrity

SHA-256 hashing of all artifacts

Audit & Traceability

IPFS artifact logs, Phoenix trace replay

Regulatory Reporting

Policy-based event filters pushed to Regulator Topic

Shariah Compliance

Rule-pack enforcement and structured audit evidence


🔄 5️⃣ End-to-End Event Lifecycle

Stage

Action

Ledger Record

1. Loan Created

Pawnshop submits item & metadata

HCS Input

2. Evaluation

Gold Evaluator computes LTV

HCS Output + IPFS Artifact

3. Compliance Check

Policy Agent validates AML/KYC

Regulator Topic

4. Liquidity Execution

Pool purchases SAG

Pool Transaction Record

5. Audit & Override

Trace verified or amended

Override Topic

6. Maturity & Settlement

Loan closed, SAG burned

HCS Final Record


🧩 6️⃣ Future Extensibility

Silsilat’s modular design allows for:

  • Multi-asset expansion: Silver, diamonds, or other tangible assets.

  • AI model marketplace: Third-party evaluators can publish models verified by Phoenix and registered on-chain.

  • Cross-border liquidity routing: Integration with stablecoins or regional CBDCs.

  • ZKP-based privacy proofs: Enable verifiable yet private on-chain KYC attestations.

  • DeFi bridges: Liquidity tokens (LQT) can be listed on DeFi exchanges for global participation.

Last updated