Skip to content

Repository files navigation

Trinity Network — On-Chain Mining Protocol Contracts

License: Apache-2.0Network: Base L2Supply: 7.625T TRI

One TRI token = one possible state of the Trinity silicon kernel. Mining requires a physical TT SKY26b Trinity chip (Phi + Euler + Gamma). No chip, no TRI. Period.


Overview

Trinity Network is the first silicon-bound proof-of-mining token. Total supply, halving cadence, and on-chain claim verification are all derived from the TRI-27 ternary kernel architecture — not chosen by foundation governance.

PropertyValue
Total supply7,625,597,484,987 TRI (= 3²⁷)
Decimals18
Pre-mine / VC / treasury0% / 0% / 0%
Mineable100% — through physical Trinity chips only
Halvings9 × 4 years (36 years total, ends 2066)
Era 0 reward1,000 TRI per valid proof
NetworkBase L2 (Sepolia testnet → mainnet)
OwnershipRenounced on Genesis Day

Contracts

ContractLinesPurpose
TriToken.sol126ERC-20 + Permit + Votes, mints 100% to MiningPool, renounces on deploy
MiningPool.sol370Holds full supply, 27 register banks (t0-t26), 7-check claimReward()
EmissionController.sol118Era 0-9, reward halves each era, shift-based math
ChipRegistry.sol163PUF fingerprint registry, φ-anchor 0x47C0 invariant, slashing
JobProver.sol114Groth16 BN254 wrapper for B5 ZK Job Proof (precompile 0x08)
IGLALedger.sol390Champion BPB lock (22393, step 27000, sha 0x2446855)
BittensorSubnetAttest.sol76B9 Bittensor pilot attestor (SN3/SN39/SN81)

Total: 1,357 lines of Solidity.

Mining Protocol (the 7 checks)

Every successful MiningPool.claimReward() requires:

  1. B5 ZK Groth16 proof on BN254 (precompile 0x08)
  2. 2-of-3 chip signatures — any 2 of Phi/Euler/Gamma must co-sign
  3. Unique PUF fingerprint registered in ChipRegistry
  4. φ-anchor 0x47C0 cross-die invariant verified (TG-TRIAD-X Theorem 36.1)
  5. BPB score ≤ 22393 (= champion 2.2393 × 10000, locked by IGLALedger)
  6. Anti-flood — minimum 24h between claims per chip
  7. Not slashed — chip must not be in slashed state in registry

Emission Curve

EraYearsReward/proofEra supplyCumulative
02026-20301,000 TRI3.81T50.000%
12030-2034500 TRI1.91T75.000%
22034-2038250 TRI953B87.500%
32038-2042125 TRI477B93.750%
42042-204662.5 TRI238B96.875%
52046-205031.25 TRI119B98.438%
62050-205415.625 TRI60B99.219%
72054-20587.8125 TRI30B99.609%
82058-20623.90625 TRI15B99.805%
92062-20661.953125 TRI7.4B100.000%

Final coin mined ~2066. 9 halvings = 36 opcodes of the TRI-27 kernel (not coincidence).

Anti-Fleet (sublinear reward scaling)

reward(n_chips) = base_reward × sqrt(n_chips)

100 chips earn only 10× the reward, not 100×. Whale fleets are economically uninteresting. Geographic decentralization bonus +20% via RIPE Atlas ZK location proof (Era 1+).

Quick Start

# Install
git clone https://github.com/gHashTag/trinity-contracts.git
cd trinity-contracts
forge install OpenZeppelin/openzeppelin-contracts --no-commit
forge install foundry-rs/forge-std --no-commit
# Build
forge build
# Test
forge test -vv
# Deploy to Base Sepoliaexport DEPLOYER_PRIVATE_KEY=0x...
export BASE_SEPOLIA_RPC=https://sepolia.base.org
export BASESCAN_API_KEY=...
forge script script/DeployAll.s.sol \
--rpc-url base_sepolia \
--broadcast \
--verify

Hardware Linkage

This contract suite is paired with three Tiny Tapeout SKY130A submissions:

ChipTilesRoleSubmission
TRI-1 Phi1φ-anchor 0x47C0 cross-die invariant#4914
TRI-1 Euler16e-engine SUPER-CROWN + 10 CLARA Gaps#4915
TRI-1 Gamma32γ-surface neuromorphic flagship#4913

Each chip exposes a champion_bpb_oracle ROM module reading the canonical anchor 0x47C0, BPB lock 22393 (Q4.12 = 0x23D3), and version 0x0100 — the hardware-side handshake for ChipRegistry.registerChip().

Related Repositories

License

Apache-2.0. Sole author: Dmitrii Vasilev (admin@t27.ai).

DOI: 10.5281/zenodo.19227877

φ² + φ⁻² = 3

About

Trinity Network — On-chain mining protocol contracts. ERC-20 TRI (7,625,597,484,987 = 3^27 supply), MiningPool with 7-check claim, ChipRegistry PUF, JobProver Groth16 BN254, EmissionController 9 halvings. Base L2. Mining requires physical TT SKY26b Trinity chip (Phi+Euler+Gamma 2-of-3 attestation).

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages