CANONICAL SPECIFICATION · LPS PROTOCOL STACK

LPS Protocol Stack

The complete normative architecture for the Deterministic Literary Publishing Standard (LPS-1 · IAPL-1 · LPS-NFT). Six independently specified, implementable, and verifiable layers deployed live on Polygon Mainnet.

Polygon Mainnet · 137 Level 5 Conformance (Fully Observable) 58/58 Verification Checks 293 Passing Tests 7 Verified Contracts MIT Licensed
Explore The 6 Layers Reference Implementation

Interactive Audio Guide: The Full Protocol Tour

Listen to the self-governing storyteller walk you through every layer: from raw text to Merkle roots, non-upgradeable contracts, and the Genesis simulation engine.

FIG 1.0 · LPS ARCHITECTURAL STACK · NORMATIVE LAYERS
┌─────────────────────────────────────────────────────────┐
│              LAYER 6 · OBSERVABILITY                    │
│    Client-side chain reads · Event timeline · Ethers v6 │
│    5 Prioritized RPC endpoints · Client hash verifier   │
├─────────────────────────────────────────────────────────┤
│              LAYER 5 · COMPLIANCE                       │
│    Level 0–5 conformance matrix · Formal verification   │
│    Level 5: Fully Observable & Cryptographically Frozen │
├─────────────────────────────────────────────────────────┤
│              LAYER 4 · DISTRIBUTION                     │
│    LPS-NFT · ERC-721 + ERC-2981 royalty standards       │
│    EditionNFT · StoryNFT · RoyaltyRouter · Recovery     │
├─────────────────────────────────────────────────────────┤
│              LAYER 3 · AUDIO LAYER                      │
│    IAPL-1 · Immutable Audio Publishing Layer            │
│    Kokoro TTS · Audio Merkle tree · Per-file SHA-256    │
├─────────────────────────────────────────────────────────┤
│              LAYER 2 · CORE PROTOCOL                    │
│    LPS-1 · Literary Publishing Standard                 │
│    SHA-256 CRLF normalization · 4 Merkle trees · Anchor │
├─────────────────────────────────────────────────────────┤
│              LAYER 1 · INFRASTRUCTURE                   │
│    Polygon Mainnet (137) · IPFS · OpenTimestamps (BTC)  │
│    Non-upgradeable contracts · Git commit provenance    │
└─────────────────────────────────────────────────────────┘
THE NORMATIVE SPECIFICATION

Layer Definitions & Components

As formalized in docs/spec/LPS-STACK.md of the reference implementation.

01

Infrastructure Layer

Settlement · Persistence · Temporal Anchoring
Polygon · IPFS · Bitcoin

The foundational layer providing settlement, content-addressed storage, and immutable cross-chain temporal anchoring:

  • Settlement: Polygon Mainnet (Chain ID 137) provides immutable on-chain state anchoring and block-level timestamps.
  • Storage: IPFS decentralized persistence addressed purely by cryptographic Content Identifier (CID).
  • Cross-Chain Timestamps: OpenTimestamps anchored into Bitcoin block headers for multi-chain temporal priority.
  • Version Control: Git commit-level authorship history and signed releases.
  • Contracts: Non-upgradeable Solidity implementations (LiteraryAnchor, PublishingKernelV2, AuthorIdentity).
// Layer 1 Specification
Settlement: Polygon Mainnet (Chain ID 137)
Storage: IPFS Content Addressing (CID)
Cross-Chain: OpenTimestamps → Bitcoin
Version Control: Git SHA-1/SHA-256 Tree
Contract Archetype: Non-upgradeable · Zero Admin Keys
02

Core Protocol (LPS-1)

Deterministic Hashing · Merkle Trees · Lifecycle State Machine
Normative Spec · LPS-1.md

The normative specification for deterministic literary publishing:

  • Content Hashing: SHA-256 with CRLF normalization (FIPS 180-4) ensuring bitwise reproducibility across all operating systems.
  • Merkle Architecture: Four independent Merkle trees: manuscript, embedded artifacts, visual images, and AI generation prompts.
  • Edition Root: Composite hash: SHA-256(manuscriptRoot ‖ artifactRoot ‖ imageRoot ‖ promptRoot).
  • Edition Lifecycle: Forward-only state transitions: DRAFT → ANCHORED → FROZEN → CANONICAL / SUPERSEDED / RETRACTED.
  • Identity: ECDSA author binding via the AuthorIdentity contract.
  • Freeze Mechanism: Permanent, irreversible on-chain seal preventing any future alteration.
// Composite Edition Root
editionRoot = SHA-256(
  manuscriptRoot ||
  artifactRoot ||
  imageRoot ||
  promptRoot
);

Edition Lifecycle: FROZEN · CANONICAL
0x6719ed7f9e142a39a4a7db533895562bdf5379cf7f9816ed7cbe045ca359594e
03

Audio Layer (IAPL-1)

Immutable Audio Publishing · Kokoro TTS · Audio Merkle Root
IAPL-1 Spec · 36 Audio Files

Extension layer for immutable audio provenance across the entire literary collection:

  • Audio Generation: Kokoro TTS v0.9.4 (hexgrad/Kokoro-82M, narrator George) with deterministic narrator configuration.
  • Audio Hashing: Per-file SHA-256 cryptographic fingerprints.
  • Audio Merkle Tree: Independent Merkle tree for all audio chapters and stories.
  • Audio Edition Root: Anchored alongside the literary edition root directly on Polygon.
  • Master Provenance: Audio edition root: 6daf95a029668335c53b192425d47ab4b776946bcdff3e92db37c28fc13bd519.
// IAPL-1 Audio Edition Root
Narrator: George (Kokoro TTS v0.9.4)
Format: mp3_24000_192
Audio Root: 3295ee6c54447cac8062fc8ac822a677b061f9d7aa88a24e0267efdad9b4bca0
Audio Edition Root: 6daf95a029668335c53b192425d47ab4b776946bcdff3e92db37c28fc13bd519
04

Distribution Layer (LPS-NFT)

ERC-721 + ERC-2981 Royalties · Non-Custodial Distribution
ERC-721 · ERC-2981 · 4 Contracts

Token-based distribution layer for self-governing literary editions and individual stories:

  • EditionNFT (0x9e9C...f8b0): ERC-721 full edition token bound directly to the edition root.
  • StoryNFT (0xD67e...e7E3): ERC-721 story tokens for individual chapters and short stories.
  • RoyaltyRouter (0x4416...C461): Non-custodial, pull-based royalty router supporting multi-payee splits.
  • RecoveryToolkit (0xedE0...89cB): Rigorous asset recovery framework (69 tests passing).
// Deployed Distribution Contracts
EditionNFT: 0x9e9Cc1486bf440Bd9eAaaD947958524Aaed3f8b0
StoryNFT: 0xD67e537Dba1236f802432cbDD30Fec3f6D38e7E3
RoyaltyRouter: 0x44169829489d70aaecbf845870652871C65fC461
RecoveryToolkit: 0xedE0Ec0C1BdCFBa4FE6AE0a4C53290a1e83e89cB
05

Compliance Framework

Levels 0 through 5 Conformance Matrix
Level 5 · Fully Observable

Conformance measurement and certification framework for literary provenance:

  • Level 0 (Anchor Only): SHA-256 hash on any public blockchain.
  • Level 1 (Deterministic Build): CRLF normalization and bit-exact reproducible hashing.
  • Level 2 (Merkle Provenance): Per-content-type trees and combined edition root.
  • Level 3 (On-Chain Anchoring): Immutable smart contract binding edition root to block.
  • Level 4 (Signed Canonical Root): ECDSA author identity and on-chain registry.
  • Level 5 (Fully Observable): Cross-chain timestamps, client-side verifier, live events. (XXXIII Achievement Level)
// Compliance Matrix Evidence
Conformance Status: Level 5 · FULLY OBSERVABLE
Evidence A: 58/58 Automated Tests Passing
Evidence B: 293 Contract & Pipeline Unit Tests
Evidence C: Bitcoin OTS Block Proof Attested
06

Observability Layer

Client-Side Chain Reads · Event Decoding · Drag-and-Drop Verifier
Ethers.js v6 · 5 Fallback RPCs

Client-side verification and real-time chain state monitoring without proprietary backend dependencies:

  • 11 Parallel Contract Reads: Real-time queries via Ethers.js v6 directly from the reader's browser.
  • Event Timeline: Live decoding of EditionAnchored and EditionFrozen smart contract events.
  • Autonomous Verification: Drag-and-drop client SHA-256 file verification against on-chain roots.
  • 5 Prioritized RPC Endpoints: Automatic failover across Polygon public and private gateways.
// Observability Architecture
Ethers.js Version: v6.13.4 UMD
Contract Reads: 11 Parallel Queries
Event Decoding: EditionAnchored, EditionFrozen
Failover Strategy: 5 Tiered Polygon RPCs
FIG 2.0 · STACK INTERACTION MODEL
User ─── Observability (L6) ─── reads ──▶ Infrastructure (L1)
  │                                              │
  ▼                                              ▼
Verify ─── Compliance (L5) ─── measures ─▶ Core Protocol (L2)
  │                                              │
  ▼                                              ▼
Collect ── Distribution (L4) ── mints ───▶ Edition Root
  │                                              │
  ▼                                              ▼
Listen ─── Audio Layer (L3) ── extends ──▶ Merkle Architecture
DEVELOPMENT TRAJECTORY

Improvement Proposals

Active and proposed standard extensions governing the future of on-chain literary publishing.

Proposal Layer Title Status
LPS-2 L1 (Infrastructure) Cross-chain anchor standard (Ethereum, Arbitrum, Solana) Draft
LPS-3 L2 (Core Protocol) Zero-knowledge proof of origin & anonymous authorship Research
LPS-4 L2 (Core Protocol) Multi-author edition support & cooperative consensus Proposed
LPS-5 L3 (Audio Layer) Audio edition Merkle standard & stem-level verification Active
ACADEMIC PROVENANCE & OPEN SCIENCE

Persistent Identifiers & Citations

Bridging on-chain blockchain immutability with global academic repositories and peer-reviewed citation standards.

Zenodo DOI Record

Archived under DOI 10.5281/zenodo.18646886. Permanent open-access scholarly repository operated by CERN.

View on Zenodo →
ORCID Author Registry

Author identity verified under ORCID 0009-0008-8425-939X, binding cryptographic key pairs to academic authority.

View ORCID Record →
// Citation File Format (CITATION.cff)
cff-version: 1.2.0
title: "Deterministic Literary Publishing: A Multi-Layer Provenance Model for Verifiable Manuscripts"
authors:
  - family-names: Burns
    given-names: Kevan
    orcid: "https://orcid.org/0009-0008-8425-939X"
doi: 10.5281/zenodo.18646886
date-released: 2026-02-15
MULTI-AGENT SIMULATION ENGINE

13 Genesis Rust Simulation Crates

Behind the narrative sits Genesis: a high-performance multi-agent economic simulation engine constructed across 13 modular Rust crates executing 6,820 synthetic worlds and 44 empirical experiments.

// Genesis Simulation Crates Architecture
Crates: 13 modular Rust crates
Synthetic Economies: 6,820 independent worlds
Replication Experiments: 44 empirical tests
Mathematical Models: Counterparty trust decay, broker cascade failure, liquidity spirals
Protocol Alignment: The same invariants governing Genesis Rust crates govern LPS-1 on-chain smart contracts
LIVE CRYPTOGRAPHIC DEMO

Interactive SHA-256 Merkle Proof

Type any sentence into the box below. Watch client-side JavaScript recalculate the SHA-256 leaf hash and simulated Merkle branch in real time:

Input Character Count 66 chars
SHA-256 Leaf Digest Calculating...
Simulated Merkle Branch Root Calculating...
DEPLOYMENT INVENTORY · 7 VERIFIED CONTRACTS

Verified Polygon Contracts

All contracts deployed on Polygon Mainnet (Chain ID 137), source code verified on Polygonscan.

Contract Name Role & Standard Polygon Address Network
PublishingKernelV2 Core Registry & State Machine 0xca9F...aAE037 Polygon Mainnet
LiteraryAnchor Immutable Edition Anchor 0xca9F...aAE037 Polygon Mainnet
AuthorIdentity ORCID & Key Provenance 0xca9F...aAE037 Polygon Mainnet
EditionNFT ERC-721 + ERC-2981 Edition Tokens 0x9e9C...f8b0 Polygon Mainnet
StoryNFT ERC-721 + ERC-2981 Story Tokens 0xD67e...e7E3 Polygon Mainnet
RoyaltyRouter Pull-Based Non-Custodial Distribution 0x4416...C461 Polygon Mainnet
RecoveryToolkit Asset Recovery & Safety Checks 0xedE0...89cB Polygon Mainnet
FOR AUTHORS & PUBLISHERS

Your Words, Your Proof

LPS-1 is an open standard. Fork the reference repository, run the deterministic hashing pipeline on your own manuscript, and anchor your work with immutable cryptographic provenance.

Fork Reference Implementation Enter The Library