# Tech Stack

| Layer              | Architecture Says     | We Implement With |
| ------------------ | --------------------- | ----------------- |
| **Infrastructure** | Cloud substrate + IaC | Azure + Terraform |
| **Network**        | Zero-trust overlay    | OpenZiti          |
| **Compute**        | BFT consensus         | (Vendor-agnostic) |
| **Storage**        | Shamir secret sharing | Keystore Service  |
| **Settlement**     | Public blockchain     | Ethereum          |

```
Technical: Implementation Stack Details

LAYER 0: INFRASTRUCTURE (Azure + Terraform)
├── Virtualization: Azure VMs, containers
├── Network isolation: VNets, NSGs
├── HSM: Azure Key Vault (FIPS 140-2 Level 3)
├── IaC: Terraform DAG for declarative state
└── Identity: Azure AD, managed identities

LAYER 1: STEALTH NETWORK (OpenZiti)
├── Identity: X.509 certificates, mTLS
├── Dark services: No listening ports on underlay
├── Mesh routing: Dijkstra over fabric routers
├── Encryption: ChaCha20-Poly1305 AEAD
└── Key exchange: X25519 ECDH

LAYER 2: BFT COMPUTE (Vendor-agnostic)
├── Consensus: Byzantine fault tolerant (80% threshold)
├── State: Replicated State Machine (RSM)
├── Leader: RAFT-style election
├── Execution: Deterministic contract logic
└── UNL: Unique Node Lists for trust

LAYER 3: KEYSTORE (Shamir + HD)
├── Split custody: 2-of-3 Shamir shares
├── Derivation: BIP-32 HD paths
├── Signatures: Ed25519 (internal), secp256k1 (EVM)
├── Threshold: Sign without reconstructing key
└── Recovery: Social recovery with timelock

EXTERNAL: ETHEREUM (ERC-20 + Contracts)
├── Token: ENX (ERC-20)
├── Staking: Lock ENX for node roles
├── Settlement: Proof verification
├── Slashing: Penalty for misbehavior
└── Entropy: Blockhash for DETSA

```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.engma.io/ravid/tech-stack.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
