Skip to content

Repository files navigation

Layer 1 Blockchain That Tokenizes Real-World Manufacturing

How It Works · Architecture · Run a Node · Paper · Contributing

![tests](https://img.shields.io/badge/tests-61%20passing-yellowgreen)

<img src="https://img.shields.io/badge/license-CC--BY--SA--4.0-blue" alt="License">


What is Jsonic?

Jsonic is a Layer 1 blockchain (like Ethereum or Solana), but instead of rewarding computation or capital, it rewards real-world manufacturing and commerce.

Tokens are minted when manufacturers produce goods, sell them, and have those transactions verified on-chain by both parties. The more real business you do with reputable counterparties, the more you earn.

The core insight: Jsonic uses PageRank mathematics (the same algorithm that powers Google Search) to build a recursive reputation system. Your reputation depends on who you trade with, and their reputation depends on who they trade with, all the way down. This makes it mathematically impossible to game the system with fake transactions.

How It Works

1. Manufacturer registers as a DAO (on-chain business identity)
2. Manufacturer produces goods → logs inventory on their side-chain
3. Sells to a buyer (another DAO or consumer) → both sign the transaction
4. POT (Proof of Transaction) validates the deal on both side-chains
5. At Solstice: main-chain collects all verified activity
6. Tokens minted and distributed based on PageRank-weighted reputation

Who gets rewarded and how much?

What you doImpact on reward
Sell to 1,000 unique buyers vs. 1 bulk buyer1,000 buyers = much higher reward (diversity)
Your buyers have high reputationHigher reward (PageRank propagation)
You trade with established DAOs vs. unknown entitiesEstablished = higher reward
You create fake DAOs to buy from yourselfNear-zero reward (Sybil resistance)

Architecture

Jsonic is a P2P network: permissionless, anyone can run a node.

 ┌───────────────────────┐
│ Heartbeat Service │ Central clock signal
│ (network pulse) │
└──────────┬────────────┘
│
┌───────────────────┼───────────────────┐
│ │ │
┌─────▼─────┐ ┌─────▼─────┐ ┌─────▼─────┐
│ Node A │◄────►│ Node B │◄────►│ Node C │ P2P mesh
│ (Miner/ │ │ (Mfg DAO) │ │ (Consumer) │
│ Trader) │ │ │ │ │
└─────┬─────┘ └─────┬─────┘ └───────────┘
│ │
┌──────┴──────┐ ┌──────┴──────┐
│ Main-Chain │ │ Side-Chain │ Per-DAO ledger
│ (global │ │ (DAO B's │ with inventory,
│ state) │ │ balance │ transactions,
│ │ │ sheet & │ and balance sheet
│ │ │ inventory) │
└─────────────┘ └─────────────┘

Who runs a node?

  • Manufacturers: to log production, track inventory, and earn tokens
  • Traders/Retailers: to transact with manufacturers and earn reputation
  • Miners: to validate transactions and earn a share of minted tokens
  • Anyone: permissionless; install the node and start participating

Protocol Stack

LayerComponentPurpose
ConsensusProof of Transaction (POT)Validates B2B transactions via dual-DAO signature matching
ReputationPageRank EngineRecursive trust propagation across the transaction graph
LedgerSide-chains (per-DAO)Individual balance sheets, inventory tracking, block generation
StateMain-chainGlobal snapshot at Solstice, token minting, network metrics
NetworkHeartbeatCentral clock + P2P node discovery and liveness
TokenJsonic TokenMinted proportionally to verified production & sales

Key Concepts

ConceptDescription
DAOOn-chain identity for a real-world business (manufacturer, retailer, etc.)
POTProof of Transaction: validates that transactions are signed by both parties
PageRankReputation algorithm: your score depends recursively on your trading partners' scores
SolsticePeriodic sync (like end of financial year) when side-chains sync to main-chain and tokens are minted
MaterialityThreshold for block creation: blocks appear when accumulated transaction value is significant
HeartbeatNetwork clock pulse from central service; nodes confirm liveness each tick
AdrenalineDynamic scaling of Heartbeat frequency based on network load
AnxietyHealth metric: ratio of invalid to total transactions (lower = healthier)

Run a Node

Requirements: Rust 1.75+

# Clone the repository
git clone https://github.com/protosphinx/jsonic.git
cd jsonic
# Build everything
cargo build --release
# Run the in-process demo (DAO registration -> transactions -> Solstice -> minting)
cargo run --bin jsonic-demo
# Run the JSON-RPC server (persists state to ./jsonic-data via sled)
cargo run --bin jsonic-rpc
# then: curl http://127.0.0.1:8080/health# Run tests (61 tests: crypto, POT, PageRank, side-chain, main-chain,# end-to-end Sybil resistance, persistence round-trips, RPC integration)
cargo test

JSON-RPC surface

MethodPathPurpose
GET/healthLiveness probe (height, pending, tick)
POST/daosRegister a DAO (body: DAO JSON)
POST/transactionsSubmit a signed Transaction
POST/heartbeatsTick the heartbeat N times (body: {ticks: u64})
GET/blocks/:heightFetch a main-chain block
GET/metricsNetwork metrics from the latest block
GET/balance/:dao_idToken balance + side-chain balance sheet
GET/reputation/:dao_idPageRank score, baseline, and trust

State is persisted to a sled database (configurable via JSONIC_RPC_DATA_DIR). On clean shutdown the latest main-chain snapshot is written back, so a node restart resumes from the same height with the same reputation history.

Codebase

src/
├── core/
│ ├── types.rs # DAO, Transaction, Block, BalanceSheet, NetworkMetrics
│ ├── crypto.rs # SHA-256, Ed25519 signing, Merkle trees
│ ├── dao.rs # DAO registration, invoice/payment creation
│ ├── pot.rs # Proof of Transaction validation engine
│ ├── reputation.rs # PageRank reputation graph + Sybil resistance
│ ├── sidechain.rs # Per-DAO ledger with Materiality block generation
│ ├── mainchain.rs # Solstice sync, token minting, network metrics
│ ├── store.rs # ChainStore trait + MemoryStore + SledStore
│ └── heartbeat.rs # Network node: heartbeat loop, POT matching
├── api.rs # Axum-based JSON-RPC handlers + router
├── bin/
│ └── rpc.rs # jsonic-rpc binary: HTTP server with sled persistence
├── lib.rs
└── main.rs # jsonic-demo binary: full in-process lifecycle

Technical Paper

The consolidated whitepaper at whitepaper.md covers both the ecosystem narrative and the formal mathematical specification:

  • Architecture (DAOs, side-chains, main-chain, JVM, POT)
  • PageRank reputation algorithm with weighted edges and convergence proofs
  • Trust-floor token minting function and Solstice distribution
  • Sybil resistance analysis with formal bounds
  • Network dynamics (Anxiety, Adrenaline, Heartbeat, Materiality)
  • Consumer integration via tokenized payment credentials
  • Properties and guarantees, integration roadmap, long-term vision

Roadmap

  • Inventory tracking: On-chain production logging and supply chain visibility
  • eInvoicing & Payment Processing: Invoice generation, payment tracking, and settlement
  • Consumer identity: Tokenized credit card / UPI / wallet integration
  • P2P networking: Node discovery, gossip protocol, distributed Heartbeat
  • Smart Contract Expansion: Extended JVM for custom business logic
  • Cross-chain Interoperability: Bridges to Ethereum, Solana, and other L1s

Contributing

We welcome contributions. See the Contributing Guide.

Security

See our Security Policy for responsible disclosure guidelines.

License

Creative Commons Attribution-ShareAlike 4.0 International

Copyright 2023–2024 @protosphinx

About

No description, website, or topics provided.

Resources

Contributing

Security policy

Stars

0 stars

Watchers

3 watching

Forks

Releases

Packages

Contributors

Languages