Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.autheo.com/llms.txt

Use this file to discover all available pages before exploring further.

Autheo Chain runs autheod, a single binary that combines the CometBFT consensus engine, Cosmos SDK application logic, and the Ethermint EVM runtime in one process.

Core layers

LayerComponent
ConsensusCometBFT v0.38.17
ApplicationCosmos SDK v0.53.0 with standard modules (bank, staking, slashing, governance, distribution, mint, auth, IBC)
Custom modulesx/license, x/licensedstaking, x/emissions, x/licensedistribution, x/autheo, x/e2ee
EVMEthermint with full Ethereum JSON-RPC
StorageMemIAVL + VersionDB

Module dependencies

ModuleRole
x/autheoRegisters EVM log handlers
x/licenseCentral source of truth for license state; provides the EVM hook
x/licensedstakingWraps staking MsgServer with license enforcement
x/emissionsPer-block reward minting reading license status
x/licensedistributionUser-facing claim interface for NFT emission rewards
x/e2eeMaintains an end-to-end encryption key registry

Request lifecycle: staking

When a staking transaction arrives, it flows through x/licensedstaking MsgServer, which performs license pre-checks before delegating to the standard staking module. Upon successful delegation, the system triggers x/license.OnDelegationCreatedOrIncreased to transition licenses from BOUND to ACTIVE.

Per-block emissions

BeginBlocker executes two sequential routines each block:
  1. MintBlockRewards — Funds the community pool, subject to the global emissions cap.
  2. MintNFTBlockRewards — Scans all active licenses, checks validator jail status, and credits per-license KV balances.

JailInterceptor integration

The interceptor wraps staking keeper functions injected into the slashing module:
  • On jail — Transitions licenses from ACTIVE to BOUND.
  • On unjail — Validates Sovereign license status before allowing state transitions.

EVM hook: ERC-721 license minting

When Ethermint processes ERC-721 Transfer events, the x/license EVM hook fires synchronously. It identifies the contract category, maps EVM to Cosmos addresses, and creates license records with ISSUED status. Duplicate minting is prevented by tracking (originChain, originContract, tokenId).

Key store layouts

Primary x/license KV store prefixes:
PrefixContents
0x01Module params
0x03License records
0x04Owner index
0x08Bindings (licenseId → validator)
0x0aNext license ID counter
0x0cUnbind timestamps
0x0dLast bound validator tracking

Storage backends

BackendNotes
IAVL + MemIAVL (default)RAM-based working tree; requires 8–16 GB of additional memory above process baseline
RocksDB + VersionDB (optional)Enables historical state queries; requires a special compilation flag

Network ports

PortServiceDefault binding
26656CometBFT P2P0.0.0.0
26657CometBFT RPC127.0.0.1
8545Ethereum JSON-RPC (HTTP)127.0.0.1
8546Ethereum JSON-RPC (WebSocket)127.0.0.1
9090gRPC127.0.0.1
1317Cosmos REST API127.0.0.1
26660Prometheus metrics127.0.0.1
Only port 26656 should be publicly accessible on validator nodes. All other ports must be firewalled to 127.0.0.1 or private network interfaces.