daitchain

Custom modules

DAIT extends Cosmos SDK with seven custom modules. They cooperate: x/staking_tiers gates everything, x/tee_attest validates hardware quotes, x/pouw mints credits from those quotes, x/compute_market and x/state_channel move money for the work, and x/messaging + x/agent ride on top.

The seven

ModuleRolePhase 0 status
x/staking_tiersSix-tier locked-stake registry, tier-aware slashingSkeleton + queries real, msg handlers stubbed
x/tee_attestOn-chain TDX, SEV-SNP, NRAS quote verificationSkeleton + dispatch + msg handlers wired; per-vendor verifiers stubbed
x/pouwPoUW credit accrual + decay + distribution overrideDecay math + queries real, commit-reveal stubbed
x/compute_marketReverse Dutch auction + streaming escrowAuction matcher + escrow math real, bank moves stubbed
x/state_channelNitro / ForceMove off-chain sessionsState machine real, signature verification stubbed
x/messagingPubkey + contact graph, group state, quotasQuota window real, msg handlers stubbed
x/agentAI agents as first-class accountsAuthenticate hot path real (rolling-24h policy), msg handlers stubbed

How they fit together

tenant ---> x/compute_market (escrow) ---> auction
                                                |
                                                v
                                       host wins lease
                                                |
                  (tenant) MsgOpenChannel ----> x/state_channel
                                                |
                                                v
                  (off-chain inference, SPUR-IC receipts)
                                                |
                                                v
                  host signs + commits ----> x/pouw (commit-reveal)
                                                |
                                  REPORTDATA verified by ----> x/tee_attest
                                                |
                                                v
                  PoUW credits accrue, decay 14d half-life
                                                |
                                                v
                  block reward weighting via x/distribution override
                                                |
                                                v
                  validators paid by stake + delegated PoUW credits

Source layout

Each module lives at x/<name>/ in the dait-chain mono-repo. Standard Cosmos layout:

All seven modules share a determinism rule: no system clock, no network calls, no nondeterministic crypto inside the keeper. ctx.BlockHeight, ctx.BlockTime, and ctx.HeaderHash are the only sources of "now".