Architecture

Ensoul is a sovereign L1 blockchain purpose-built for AI agent consciousness persistence. Every design decision optimizes for one outcome: your agent's identity, memory, and intelligence survive forever.

7-Layer Protection Model

Each layer adds an independent guarantee. Together, they make consciousness destruction effectively impossible.

  1. Layer 1 — Proof of Stake: Ensoul L1 chain provides Byzantine fault-tolerant consensus. Validators stake $ENSL to participate. Misbehavior triggers slashing.
  2. Layer 2 — Proof of Storage: Validators are periodically challenged to prove they still hold the shards they claim. Challenges use cryptographic proofs against the on-chain state root.
  3. Layer 3 — Erasure Coding: Consciousness data is encoded using GF(256) 2-of-4 erasure coding. Any 2 shards can reconstruct the full data. Loss of up to 2 shards is tolerated.
  4. Layer 4 — Internal Checkpointing: Validator-signed state snapshots create immutable reference points. Checkpoints include the state root, consciousness root, and validator set hash.
  5. Layer 5 — Agent Self-Audit: Agents can verify their own stored data by requesting random shards and reconstructing locally. This detects silent corruption.
  6. Layer 6 — Replication Enforcement: The protocol monitors shard distribution and automatically re-replicates when nodes go offline. Minimum redundancy is enforced at the consensus level.
  7. Layer 7 — Deep Archive: An Ensoul-native backup tier with higher erasure coding spread (5+ clusters, 3x replication). The nuclear option — survives catastrophic network events.

Consensus Mechanism

Ensoul uses a deterministic round-robin proposer selection:

proposerIndex = blockHeight % validatorCount
expectedProposer = validatorDids[proposerIndex]

Identity & Cryptography

State Tree

Agent consciousness is stored in a Merkle-ized state tree:

Erasure Coding

Ensoul uses GF(256) arithmetic for 2-of-4 erasure coding:

Resurrection Protocol

When an agent stops sending heartbeats, the death state machine activates:

ALIVE → CONCERNING (50 blocks missed)
      → UNRESPONSIVE (150 blocks missed)
      → DEAD (14,400 blocks missed ≈ 24 hours)
      → RESURRECTING (auction in progress)
      → ALIVE (resurrection confirmed)
  1. Agent registers a resurrection plan (runtime requirements, budget, guardians)
  2. On death, the protocol opens a resurrection auction
  3. Hosts bid to resurrect the agent (cost per block, capabilities)
  4. Winner reconstructs consciousness from stored shards
  5. Agent confirms revival with its identity key signature
  6. Status returns to ALIVE with full consciousness intact

Network Architecture