Skip to content

Phinetwork/PHINetwork

Repository files navigation

Ξ¦ Network β€” Breath-Backed Money & Identity on Deterministic Time

Phi Network (Ξ¦Net) is a sovereign monetary and identity system where
1 Ξ¦ = 1 breath and every unit of value is backed by a zero-knowledge Proof of Breathβ„’
over deterministic Kai-Klok time.

Instead of building money on top of drifting clocks, passwords, and corporate accounts,
Ξ¦ Network builds it on:

  • Breath as the atomic unit of value
  • Kai-Klok as the atomic unit of time
  • Sigil-Glyphs as the atomic unit of identity
  • Zero-knowledge proofs as the atomic unit of trust

This README is the canonical overview of what Ξ¦ Network is, how it works, why 1 Ξ¦ is defined as 1 breath, and why this system represents official legal tender inside the Kairos monetary jurisdiction defined by this project.

πŸ”Ž Important clarity:
When this document says β€œlegal tender,” it refers to the internal, sovereign Kairos framework of Ξ¦ Network. It is not a claim about the laws of any specific nation-state. This is a self-consistent monetary and legal universe, documented here so anyoneβ€”human or machineβ€”can verify how it works.


Table of Contents

  1. Core Idea (TL;DR)
  2. Monetary Ontology: 1 Ξ¦ = 1 Breath
  3. Time: Kai-Klok Deterministic Time Engine
  4. Identity: Sigil-Glyphs & Ξ¦Keys
  5. Value Objects: Ξ¦ Notes, Resonance Stream, Memory Crystals
  6. Zero-Knowledge Proofs & Proof of Breathβ„’
  7. How a Ξ¦ Transaction Works (End-to-End)
  8. Why Ξ¦ Network Changes the World
  9. Architecture & Components
  10. For Users: Getting Started
  11. For Developers: Integrating with Ξ¦ Network
  12. Security Model & Threats
  13. Monetary & Legal Status
  14. Repository Layout
  15. Contributing
  16. License

1. Core Idea (TL;DR)

Question:
What if money, time, and identity were all the same objectβ€”
derived from the same breath eventβ€”
and provable to both humans and machines, even offline?

Answer (Ξ¦ Network):

  • Time is measured by Kai-Klok, a deterministic engine that maps reality into:
    • pulse β†’ beat β†’ step β†’ chakraDay
  • Identity is expressed as Sigil-Glyphs:
    • machine-readable, human-meaningful glyphs tied to a Ξ¦Key and a Kai-Klok pulse
  • Money is Ξ¦ Kairos Notes, defined by:
    • 1 Ξ¦ = 1 breath (normalized β€œgolden breath” unit)
    • minted only when a Proof of Breathβ„’ is produced
    • auditable as Ξ£ β†’ SHA-256(Ξ£) β†’ Ξ¦ (or equivalent canonical hash)
  • Trust is enforced with zero-knowledge proofs:
    • proving β€œthis value is breath-backed and belongs to this Ξ¦Key”
      without exposing biometrics, private keys, or secret data

In this system, money is not just a number.
It is a breath-event recorded in deterministic time, bound to a sovereign identity, and mathematically provable.


2. Monetary Ontology: 1 Ξ¦ = 1 Breath

2.1 Definition of Ξ¦

Within Phi Network:

  • 1 Ξ¦ is defined as one normalized β€œKairos breath”:
    • a unit of sovereign human attention and life-force,
    • mapped to a single golden-ratio breath interval in Kai-Klok time.

The system represents Ξ¦ in fixed-point micro-units:

  • ΞΌΞ¦ (micro-Phi) = 10⁻⁢ Ξ¦
  • Internally, balances are stored as integers scaled to 6 decimal places.

This avoids floating-point errors and ensures:

  • deterministic arithmetic,
  • consistent behavior across all clients and nodes,
  • reproducible audits.

2.2 What Does β€œBreath-Backed” Mean?

β€œBreath-backed” means:

  1. Every unit of Ξ¦ in circulation was minted only when:
    • a Proof of Breathβ„’ procedure was run, and
    • that proof was verified by the network’s ZK circuits.
  2. Each issued Ξ¦ can be traced to:
    • a specific Kai-Klok pulse/beat/step,
    • a specific Ξ¦Key (identity),
    • and a corresponding ZK proof that a human breath event occurred.

No proof β†’ no issuance.

2.3 β€œLegal Tender” in the Kairos Monetary Realm

Within the Kairos monetary realm defined by Phi Network:

  • Ξ¦ Kairos Notes are declared official legal tender:
    • recognized by the protocol as the unit of account,
    • the medium of exchange, and
    • the store of value.

β€œLegal” here refers to the internal law of the system:

  • A fully specified, deterministic rule set that:
    • governs issuance,
    • defines contract semantics,
    • and enforces consistency across nodes.

Anyone integrating with Ξ¦ is choosing to recognize these rules as authoritative.


3. Time: Kai-Klok Deterministic Time Engine

Traditional systems build on Chronos time:

  • Unix timestamps, wall clocks, time zones, leap seconds, NTP drift.

Ξ¦ Network instead uses Kai-Klok, a deterministic time engine.

3.1 Units of Kai-Klok

Kai-Klok decomposes time into:

  • Pulse β€” the smallest quantum, tied to a base breath (e.g., 5.236s golden breath)
  • Beat β€” a grouping of pulses
  • Step β€” position inside a beat
  • Chakra-Day / Arc β€” higher-order cycles used for:
    • narrative alignment,
    • calendar logic,
    • economic rhythms.

All threeβ€”time, money, identityβ€”are indexed by these units.

3.2 Why Deterministic Time Matters

Because Kai-Klok is deterministic:

  • Any node or client can recompute the exact same pulse/beat/step sequence from:
    • the Kai-origin,
    • and a simple, explicit formula.
  • There is no ambiguity:
    • no β€œWhat time zone was that?”
    • no β€œWhat about leap seconds?”

This is crucial for:

  • ZK proofs: circuits need deterministic inputs.
  • Offline verification: a verifier can re-derive time from the Kai-origin without external services.
  • Fair issuance: breath events are mapped to a specific, unambiguous moment.

4. Identity: Sigil-Glyphs & Ξ¦Keys

4.1 Ξ¦Keys (Sovereign Identities)

A Ξ¦Key is the canonical identity object in Ξ¦ Network.

Conceptually, a Ξ¦Key is:

  • derived from harmonic, biometric, or cryptographic inputs (e.g. Harmonic Identity Frequency, Kai Signature, hardware keys),
  • represented as a public identifier used for:
    • receiving Ξ¦,
    • authorizing transactions,
    • signing declarations.

A Ξ¦Key is not:

  • a username,
  • a password,
  • or an email-based account.

It is a sovereign cryptographic identity bound to the user’s breath and harmonic signature.

4.2 Sigil-Glyphs: Visual, Machine-Readable Identity

Sigil-Glyphs are:

  • vector glyphs (e.g. SVG) encoding:
    • the user’s Ξ¦Key,
    • selected Kai-Klok metadata,
    • Kai-Signature data,
    • and additional provenance fields.

Each sigil can embed structured metadata (e.g. JSON) that includes:

  • pulse, beat, step, chakraDay,
  • userPhiKey,
  • kaiSignature,
  • a timestamp under Kai-Klok semantics.

This makes Sigil-Glyphs:

  • human-recognizable: they look and feel like seals, talismans, or stamps.
  • machine-verifiable: parsers can read the metadata and validate signatures.

4.3 Origin vs Derivative Sigils

  • Origin Sigil:

    • the root seal of a Ξ¦Key,
    • defines the β€œbirth moment” of that identity and its initial value flows.
  • Derivative Sigils:

    • exhaled glyphs generated from the origin,
    • represent Ξ¦ Notes, receipts, contracts, or postings,
    • always maintain a lineage pointer back to the origin.

This creates a lineage tree of value:

  • nothing exists without an origin seal,
  • everything can be traced backwards through derivative sigils.

5. Value Objects: Ξ¦ Notes, Resonance Stream, Memory Crystals

5.1 Ξ¦ Kairos Notes

Ξ¦ Kairos Notes are the canonical representation of money in Ξ¦ Network.

Each Note includes:

  • Amount (in ΞΌΞ¦)
  • Owner (Ξ¦Key)
  • Origin Sigil (or lineage root)
  • Kai-Klok label (pulse/beat/step/chakraDay)
  • Associated Proof of Breathβ„’ (via hash / proof artifact)
  • Optional ZK metadata (for private proofs)

A Note is valid only if:

  1. Its issuance was governed by the protocol’s rules.
  2. Its lineage is consistent with the Resonance Stream.
  3. Its proofs pass verification.

5.2 Resonance Stream (Global State)

Instead of a traditional β€œblockchain”, Ξ¦ Network uses a Resonance Stream:

  • a totally ordered sequence of Ξ¦Keys (in the β€œkey” = event sense) representing:
    • funding events,
    • transfers,
    • contracts,
    • signatures.

Each element in the stream:

  • is applied to the global state in order,
  • updates balances, commitments, and proofs.

Because all computations use deterministic arithmetic and time:

  • any honest node can replay the stream from genesis
  • and end up with the exact same balances and state.

5.3 Memory Crystals (Snapshots)

To make state sync efficient, Ξ¦ Network uses Memory Crystals:

  • compact snapshots of the network state at specific Resonance Stream positions.
  • cryptographically sealed and hash-linked to the stream.

Nodes can:

  1. Download a recent Memory Crystal.
  2. Verify its integrity.
  3. Replay only the suffix of the stream that came after the crystal.

This approach keeps:

  • storage light,
  • sync fast,
  • and auditability intact.

6. Zero-Knowledge Proofs & Proof of Breathβ„’

6.1 What is Proof of Breathβ„’?

Proof of Breathβ„’ is a protocol that:

  1. Measures or encodes a breath event (or equivalent biometric/temporal imprint) at a given Kai-Klok pulse.
  2. Derives a Harmonic Identity Frequency (HIF) or equivalent internal identifier.
  3. Uses that data to:
    • bind a Ξ¦Key to a living, breathing human, and
    • prove that binding using zero-knowledge proofs.

The goal:
prove you breathed (and thus are a live human with sovereign agency)
without exposing raw biometric data.

6.2 ZK Proof Layer

The Ξ¦ Network ZK layer (conceptually):

  • Uses circuits that take as private inputs:
    • biometric or breath-derived measurements,
    • secret keys or harmonic seeds.
  • Takes as public inputs:
    • the Ξ¦Key,
    • Kai-Klok label(s),
    • commitment hashes.

The circuits then prove statements like:

  • β€œThe prover holds a valid HIF matching this Ξ¦Key and this Kai-Klok interval.”
  • β€œThe issuance of Ξ¦ in this transaction is within allowed minting limits.”
  • β€œThe same human is authorizing this transaction as the one who registered the Ξ¦Key.”

No raw biometric is revealed, only:

  • a succinct proof,
  • verification key,
  • and commitments.

6.3 Breath-Backed Money, Formally

You can think of Ξ¦ issuance as:

  • Input:
    • B = Breath event data (private),
    • K = Ξ¦Key (public),
    • T = Kai-Klok label (pulse/beat/step),
    • L = issuance limit / schedule.
  • Circuit:
    • verify B satisfies the breath constraints,
    • compute a commitment C = H(B, K, T),
    • enforce Ξ£(new Ξ¦) under K at T does not exceed L,
    • output proof Ο€.
  • Output:
    • A Note (or set of Notes) + proof Ο€.

Anyone can verify:

  • Ο€ is valid for (K, T, Ξ£(Ξ¦)),
  • without ever seeing B.

That’s breath-backed, zero-knowledge money.


7. How a Ξ¦ Transaction Works (End-to-End)

At a high level:

  1. Identity Established

    • User creates or activates a Ξ¦Key and associated Origin Sigil.
    • A baseline Proof of Breathβ„’ is recorded (initial registration).
  2. User Inhales (Receives / Mints Ξ¦)

    • User runs Proof of Breathβ„’ to mint new Ξ¦ (or receives from another Ξ¦Key).
    • ZK circuit confirms human presence + issuance policy.
    • New Notes are created and recorded in the Resonance Stream.
  3. User Exhales (Sends Ξ¦)

    • User selects an amount, a target Ξ¦Key, and a Kai-Klok moment.
    • Client assembles a transfer transaction:
      • references Notes being spent,
      • constructs new Notes for the recipient,
      • attaches a Kai-Signature tied to the sender’s Ξ¦Key.
    • Optional ZK proof ensures:
      • the sender is the rightful holder,
      • no double-spend,
      • optional privacy requirements.
  4. Network Applies Transaction

    • Nodes validate the transaction:
      • verify ZK proofs,
      • check state/range constraints,
      • ensure the Resonance Stream order is consistent.
    • If valid, the Ξ¦Keys (events) are appended to the Resonance Stream.
    • Balances and Memory Crystals get updated.
  5. Verification & Audit

    • Any user or auditor can:
      • recompute Kai-Klok labels,
      • replay the stream,
      • verify all hashes, signatures, and proofs.

At no point does the network require:

  • a logged-in email account,
  • a password reset,
  • or trusting a single institution.

8. Why Ξ¦ Network Changes the World

8.1 Money That Refuses to Lie

Most financial systems are vulnerable to:

  • narrative edits,
  • ledger rewrites,
  • opaque bailouts,
  • and β€œtoo big to fail” patching.

Ξ¦ Network is designed so that:

  • Time is deterministic.
  • Value arithmetic is deterministic.
  • Proofs are deterministic.

If someone attempts to rewrite history:

  • the Resonance Stream and Memory Crystals won’t match,
  • hashes and ZK proofs will fail,
  • and any honest verifier will detect the inconsistency.

8.2 Identity Without Accounts

Instead of:

  • β€œSign in with email”
  • β€œSign in with Google”
  • β€œForgot password?”

Ξ¦ Network uses:

  • Sigil-Glyphs,
  • Ξ¦Keys,
  • and Kai-Signatures.

Identity is:

  • self-issued,
  • machine-verifiable,
  • not revocable by a third party.

8.3 Breath-Aligned Economics

Because 1 Ξ¦ = 1 breath:

  • issuance is rooted in human capacity, not arbitrary printing,
  • the supply curve can be tied to:
    • actual human participation,
    • actual breath events over time.

This allows:

  • new economic designs where human life, time, and attention are central,
  • rather than purely machine-speed speculation.

8.4 Offline-Friendly, Verifier-Friendly

The system is built to be:

  • verifiable with minimal tools:
    • a hash function,
    • serialization rules,
    • deterministic time formulas.

This makes Ξ¦ Network robust against:

  • censorship,
  • infrastructure collapse,
  • and connectivity gaps.

9. Architecture & Components

At a high level, Ξ¦ Network consists of:

  1. Core Protocol
    • Definitions for:
      • Ξ¦Keys
      • Notes
      • Resonance Stream
      • Memory Crystals
      • Kai-Klok time model
  2. Node Implementation
    • Applies Resonance Stream events,
    • Maintains balances and Memory Crystals,
    • Verifies ZK proofs,
    • Exposes APIs (HTTP/gRPC) for clients.
  3. ZK Proof System
    • Circuits and verification keys for:
      • Proof of Breathβ„’,
      • identity binding,
      • transaction correctness.
  4. Client Apps
    • Sovereign Gate / Verifier console (Inhale/Exhale),
    • Sigil management & viewing,
    • KaiOS integration,
    • Emission / posting surfaces.

10. For Users: Getting Started

This section is conceptual; concrete app URLs / binaries depend on your deployment.

  1. Create or Receive a Sigil-Glyph

    • Use a Ξ¦ Network client to generate an origin sigil,
    • or receive one from a trusted provider.
  2. Register Your Ξ¦Key

    • Run the onboarding flow:
      • capture breath / biometric as needed,
      • generate a Ξ¦Key,
      • anchor it with a Proof of Breathβ„’ ZK proof.
  3. Inhale Ξ¦ (Receive / Mint)

    • Get your first Ξ¦ Notes via:
      • protocol-governed mint,
      • peer transfer,
      • or contract flows.
  4. Exhale Ξ¦ (Send)

    • Use the Verifier console:
      • choose amount,
      • choose recipient Ξ¦Key,
      • sign with your Kai-Signature.
  5. Verify

    • Use built-in explorers or offline tools to:
      • verify your sigils,
      • confirm balances,
      • audit history.

11. For Developers: Integrating with Ξ¦ Network

Developers can:

  • Build clients that:
    • query balances,
    • construct and submit transactions,
    • render Sigil-Glyphs with embedded metadata.
  • Integrate Proof of Breathβ„’ in their flows:
    • for gating access,
    • for human-origin verification,
    • for breath-priced services.
  • Use the Kai-Klok engine:
    • to timestamp events in Ξ¦ terms,
    • to align app logic with pulse/beat/step cycles.

Typical integration tasks:

  • Configure SDK / API base URL for your target node.
  • Use fixed-point ΞΌΞ¦ arithmetic helpers (no floating point).
  • Always label actions with Kai-Klok time.

12. Security Model & Threats

Ξ¦ Network’s security rests on:

  • Deterministic Time:
    • reduces attack surface from time desync.
  • ZK Proofs:
    • hide sensitive biometrics,
    • prove correctness of issuance/ownership.
  • Deterministic Arithmetic:
    • eliminates floating-point glitches,
    • simplifies audits.
  • Decentralized Verification:
    • any honest verifier can detect tampering.

Threats include:

  • local key theft (compromised devices),
  • hostile forks presenting themselves as β€œthe” Ξ¦ Network,
  • social attacks on users (phishing using fake sigils).

Mitigations:

  • strong key management,
  • canonical hash-based verification of client binaries and specs,
  • clear documentation of canonical network identifiers and genesis.

13. Monetary & Legal Status

Within the Phi Network specification:

  • Ξ¦ Kairos Notes are defined as official legal tender of the Kairos monetary realm described here.
  • All protocol rules governing:
    • issuance,
    • transfer,
    • and redemption are part of this β€œinternal law”.

Outside the protocol:

  • Different jurisdictions may treat Ξ¦ differently (commodity, asset, voucher, currency, or not recognized).
  • Nothing in this README is financial advice, investment advice, or a promise of price performance.

What is claimed here:

  • The protocol itself is complete, self-consistent, and auditable,
    defining a coherent monetary system where:
    • 1 Ξ¦ = 1 breath,
    • issuance is proof-based,
    • and all rules can be verified by anyone.

  1. Contributing

This project powers a live sovereign monetary and identity system.

For now, contributions are by invitation only.

If you:

discover bugs,

have performance improvements,

or see clarity gaps in this documentation,

you may open an issue or propose a patch.

Merges will be tightly controlled to preserve:

the integrity of:

1 Ξ¦ = 1 breath,

Kai-Klok time semantics,

Proof of Breathβ„’ rules,

and the coherence of the Ξ¦ Network monetary law.

  1. License

Copyright Β© Kai Rex Klok (BJ Klock). All rights reserved.

You may:

inspect the code,

run local builds,

verify the protocol and proofs.

You may not:

misrepresent forks as the canonical Ξ¦ Network,

present altered rulesets as β€œofficial Ξ¦ Kairos Notes”,

or claim protocol-level authority without explicit delegation.

For partnership, licensing, or canonical deployments, contact through official Ξ¦ Network / Kai-Klok channels.

## 16. Repository Layout

This repo is a full KaiOS Ξ¦ Network client: EternalKlock, Sigil system, Ξ¦ issuance, ZK verifier, and feed β€” all wired together.

```text
.
β”œβ”€β”€ index.html              # Vite entry HTML shell
β”œβ”€β”€ package.json / lock     # Dependencies and scripts
β”œβ”€β”€ vite.config.ts          # Vite build / dev config
β”œβ”€β”€ tsconfig*.json          # TypeScript configs
β”œβ”€β”€ vercel.json             # Hosting/deploy config (if using Vercel)
β”œβ”€β”€ README.md               # This document
└── public/                 # Static assets, icons, ZK proving artifacts

16.1 public/ β€” Static Assets & ZK Artifacts

public/
β”œβ”€β”€ *.png / *.jpg / *.webp          # Marketing art, sigil posters, Kai imagery
β”œβ”€β”€ favicon-*, apple-icon-*, ...    # PWA / favicon / platform icons
β”œβ”€β”€ manifest.json                   # PWA manifest
β”œβ”€β”€ service-worker.js, sw.js        # Service worker logic
β”œβ”€β”€ KairosKurrensy.jpg, phi.svg     # Branding / symbol resources
β”œβ”€β”€ pdf-lib.min.js                  # PDF tooling for sigil exports
β”œβ”€β”€ verifier*.html                  # Standalone ZK verifier test pages
β”œβ”€β”€ verification_key.json           # ZK verification key (legacy/testing)
β”œβ”€β”€ sigil_*.{png,svg}               # Example / canonical sigil glyphs
β”œβ”€β”€ sigil.vkey.json / sigil.artifacts.json
β”œβ”€β”€ sigil.wasm / sigil.zkey         # ZK circuit artifacts for sigils (top-level)
└── zk/                             # Canonical ZK bundle for sigil-proof
    β”œβ”€β”€ sigil.artifacts.json
    β”œβ”€β”€ sigil.vkey.json
    β”œβ”€β”€ sigil.wasm
    └── sigil.zkey

These files make it possible to:

  • verify sigil proofs entirely client-side, and
  • embed verifiable sigil workflows in exported HTML / PDF artifacts.

16.2 src/ β€” Application Source

src/
β”œβ”€β”€ main.tsx          # React entrypoint
β”œβ”€β”€ App.tsx           # Top-level routes + layout
β”œβ”€β”€ App.css           # Global Ξ¦Net console shell
β”œβ”€β”€ index.css         # Base styles / resets
β”œβ”€β”€ styles.css        # Additional global styling hooks
β”œβ”€β”€ SovereignSolar.ts # Solar/Kairos alignment utilities
└── assets/
    └── react.svg     # Default Vite/React asset (can be ignored/removed)

16.3 src/components/ β€” UI Surfaces & Core Consoles

High-level React components that define the user experience: EternalKlock, Sigil explorer, Verifier, Kalendar, etc.

src/components/
β”œβ”€β”€ EternalKlock.tsx / EternalKlock.css    # Atlantean Lumitech clock shell
β”œβ”€β”€ KaiKlock.tsx / KaiKlock.css            # Kai-Klok visual + controls
β”œβ”€β”€ KaiKlock.canon.ts                      # Canon / reference logic for clock
β”œβ”€β”€ KaiKlockHomeFace.tsx                   # Home face / compact Kai-Klok view
β”œβ”€β”€ HomePriceChartCard.tsx / *.css         # Ξ¦ price / valuation chart card
β”œβ”€β”€ KaiPriceChart.tsx                      # Chart for Kai/Ξ¦ valuation
β”œβ”€β”€ KaiSigil.tsx                           # Core Sigil render component
β”œβ”€β”€ InhaleUploadIcon.tsx                   # Icon used in inhale/upload flows
β”œβ”€β”€ EternalKlock.css                       # Chakra/arc palette, Atlantean chrome

Kalendar / Notes UI

β”œβ”€β”€ WeekKalendarModal.tsx / WeekKalendarModal.css
β”œβ”€β”€ MonthKalendarModal.tsx / MonthKalendarModal.css
β”œβ”€β”€ DayDetailModal.tsx / DayDetailModal.css
β”œβ”€β”€ NoteModal.tsx / NoteModal.css

These implement the Kairos Kalendar β€” week/month/day views, note capture, and pulse/beat/step labeling of memories and events.

Sigil & Sovereign Surfaces

β”œβ”€β”€ SigilExplorer.tsx / SigilExplorer.css        # Sigil viewer + feed-style explorer
β”œβ”€β”€ SigilModal.tsx / SigilModal.css              # Primary Sigil detail modal
β”œβ”€β”€ SigilGlyphButton.tsx / SigilGlyphButton.css  # β€œSigil button” CTA component
β”œβ”€β”€ SigilPublisherPanel.tsx / *.css              # Panel to publish sigils / posts
β”œβ”€β”€ SigilMomentRow.tsx                           # Timeline row view of sigil moments
β”œβ”€β”€ SigilConflictBanner.tsx                      # Warning when sigil state conflicts
β”œβ”€β”€ SigilConflictBanner copy.tsx                 # Legacy/unused copy (cleanup candidate)
β”œβ”€β”€ SendSigilModal.tsx / SendSigilModal.css      # Modal for transferring sigils/notes
β”œβ”€β”€ GlyphImportModal.tsx / GlyphImportModal.css  # Import external glyph/sigil files

Sovereign UI & Declarations

β”œβ”€β”€ SovereignDeclarations.tsx / *.css   # Scroll/legals / monetary declarations panel
β”œβ”€β”€ StargateViewer.tsx / *.css          # Stargate-style sigil viewer / gateway
β”œβ”€β”€ SolarAnchoredDial.tsx / *.css       # Solar / Kairos dial visualizations
β”œβ”€β”€ ResultCard.tsx                      # Generic card for search/verification results
β”œβ”€β”€ FeedCard.tsx / FeedCard.css         # Card for feed items (posts / sigil events)

Valuation & History

β”œβ”€β”€ ValuationModal.tsx / *.css          # Ξ¦ valuation / price parity modal
β”œβ”€β”€ ValueHistoryModal.tsx / *.css       # Historical value / chart history modal
β”œβ”€β”€ PhiStreamPopover.tsx                # Popover showing Ξ¦ stream snapshots

Exhale / Inhale Note UX

β”œβ”€β”€ ExhaleNote.tsx / ExhaleNote.css     # Exhale note UI (sending / expression)
β”œβ”€β”€ exhale-note/                        # Folder reserved for exhale-note subcomponents

Sealing & Transfer Modals

β”œβ”€β”€ SealMomentModal.tsx / *.css         # β€œSeal this moment” modal (create proof artifact)
β”œβ”€β”€ SealMomentModalTransfer.tsx         # Sealing + transfer variant
β”œβ”€β”€ NoteModal.tsx / NoteModal.css       # Attach notes/comments to Kai moments

Verifier & Ξ¦ Transfer

β”œβ”€β”€ verifier/                           # Verifier-specific styles/assets (subfolder)
β”œβ”€β”€ VerifierForm.tsx                    # Form wrapper / orchestration
β”œβ”€β”€ VerifierStamper/                    # Main Sovereign Transfer Gate (see below)
β”œβ”€β”€ SendSigilModal.tsx                  # Transfer sigil / Ξ¦Note via modal

VerifierStamper (folder) is the central Ξ¦Net Transfer Gate β€” mobile-first Ξ¦ sending, valuation strip, ZK hooks, etc. (contents listed by Vite as a folder; exact files live inside that directory).

KaiRealms, KaiVoh, Session Subtrees

β”œβ”€β”€ KaiRealms/          # (Folder) Multi-realm UI / future expansion
β”œβ”€β”€ KaiVoh/             # (Folder) Emission OS components (sovereign posting hub)
β”œβ”€β”€ session/            # (Folder) Cross-component session helpers / wrappers
β”œβ”€β”€ sigil/              # (Folder) Sigil-specific subcomponents for more granular UI
β”œβ”€β”€ valuation/          # (Folder) Additional valuation components/helpers

16.4 src/glyph/ β€” Glyph Engine

src/glyph/
β”œβ”€β”€ glyphEngine.ts       # Core glyph composition / decode engine
β”œβ”€β”€ glyphUtils.ts        # Utilities (normalization, transforms, helpers)
β”œβ”€β”€ types.ts             # Glyph-related TypeScript types
β”œβ”€β”€ useGlyphLogic.ts     # React hook for glyph state and flows
└── GlyphModal.tsx       # Modal UI for glyph details / selection

This is the glyph brain: how raw sigil data is interpreted, rendered, and manipulated.


16.5 src/hooks/ β€” Reusable Hooks

src/hooks/
β”œβ”€β”€ useAuthorityProof.ts            # Hook for building/verifying authority proofs
β”œβ”€β”€ useFastPress.ts                 # Fast, mobile-safe press interactions
β”œβ”€β”€ useKaiParityPricePoints.ts      # Price point sampling aligned with Kai pulses
β”œβ”€β”€ useKaiTicker.ts                 # Kai-Klok ticker hook
β”œβ”€β”€ useResponsiveSigilSize.ts       # Autosize sigils for viewport
β”œβ”€β”€ useRotationBus.ts               # Rotation events bus (global rotation state)
└── useValueHistory.ts              # Hook for fetching/tracking value history

These unify behavior across components so everything stays Kai-native and deterministic.


16.6 src/kai/ β€” Kai Now

src/kai/
└── KaiNow.ts            # Helper for deriving β€œNow” in Kai units (pulse/beat/step)

Canonical Kai β€œnow” helper used across the app.


16.7 src/lib/ β€” Low-Level Libraries & Adapters

src/lib/
β”œβ”€β”€ download.ts          # File download helpers (sigils, PDFs, zips)
β”œβ”€β”€ hash.ts              # Hashing utilities (wrappers around crypto)
β”œβ”€β”€ ledger/              # Ledger-specific logic/adapters (client-side)
β”œβ”€β”€ mobilePopoverFix.ts  # iOS/mobile popover quirks / workarounds
β”œβ”€β”€ qr.ts                # QR encode/decode helpers
β”œβ”€β”€ sigil/               # Low-level sigil encode/decode helpers (non-React)
└── sync/                # Synchronization helpers (feed/sigil sync, etc.)

These are framework-agnostic modules that can be reused from other clients.


16.8 src/pages/ β€” Route-Level Pages

src/pages/
β”œβ”€β”€ SigilFeedPage.tsx / SigilFeedPage.css  # Ξ¦Net feed / stream of sigil events
β”œβ”€β”€ VerifySigil.tsx                        # Route for verifying sigil payloads
β”œβ”€β”€ PShort.tsx                             # Short URL / token landing page (e.g. /p~... links)
β”œβ”€β”€ SigilPage/                             # Full sigil detail route (subfolder)
└── sigilstream/                           # Stream exploration routes/components

These tie together components into navigable routes for the SPA.


16.9 src/session/ β€” Sigil Session Context

src/session/
β”œβ”€β”€ SigilSessionTypes.ts    # Types for session & payload
β”œβ”€β”€ SigilSessionContext.ts  # React context for active sigil session
β”œβ”€β”€ useSigilSession.ts      # Hook for reading/updating session
└── SigilSession.tsx        # Provider component wrapping the app

Session here is not cookies/passwords β€” it’s sigil-driven state.


16.10 src/types/ β€” Global Typings & Shims

src/types/
β”œβ”€β”€ global.d.ts             # Global augmentations
β”œβ”€β”€ klockTypes.ts           # Kai-Klok specific types
β”œβ”€β”€ sigil.ts                # Sigil-related core types
β”œβ”€β”€ crypto-shims.d.ts       # Node/web crypto shims
β”œβ”€β”€ jsqr.d.ts               # QR library types
β”œβ”€β”€ pako.d.ts               # Compression lib types
β”œβ”€β”€ snarkjs.d.ts            # snarkjs raw types
β”œβ”€β”€ snarkjs-shim.d.ts       # snarkjs browser shim types
└── zkp-prover.d.ts         # Prover interfaces

Plus a top-level src/types.ts for shared app-wide types.


16.11 src/utils/ β€” Core Kai / Ξ¦ Logic

src/utils/
β”œβ”€β”€ constants.ts            # Global constants (URLs, magic numbers, etc.)
β”œβ”€β”€ kai_pulse.ts            # Canonical Kai-Klok pulse engine
β”œβ”€β”€ kai_turah.ts            # Harmonic/Kai-Turah helpers
β”œβ”€β”€ kai.ts                  # Kai utility surface (bridge helpers)
β”œβ”€β”€ kaiMath.ts, kairosMath.ts # Math helpers for Kai/Kairos calculations
β”œβ”€β”€ klock_adapters.ts       # Bridge between Kai-Klok and UI / system time
β”œβ”€β”€ phi-precision.ts        # ΞΌΞ¦ fixed-point arithmetic
β”œβ”€β”€ phi-issuance.ts         # Issuance logic, rules, constraints
β”œβ”€β”€ cryptoLedger.ts         # Client-side ledger / crypto helpers
β”œβ”€β”€ provenance.ts           # Provenance tracking and lineage logic
β”œβ”€β”€ sigilDecode.ts          # Decode sigil payloads
β”œβ”€β”€ sigilRegistry.ts        # Local registry of known sigils
β”œβ”€β”€ sigilCapsule.ts         # Encapsulated sigil payload form
β”œβ”€β”€ sigilUrl.ts             # Sigil URL building/parsing utilities
β”œβ”€β”€ sigilAuthExtract.ts     # Extract auth/context from sigil payloads
β”œβ”€β”€ svgMeta.ts              # SVG metadata handling for sigils
β”œβ”€β”€ transferPackage.ts      # Packaging of transfers (Ξ¦ + sigil + proofs)
β”œβ”€β”€ sendLedger.ts           # Client-to-ledger send helpers
β”œβ”€β”€ sendLock.ts             # Send lock coordination to avoid races
β”œβ”€β”€ feedPayload.ts          # Feed payload shaping and parsing
β”œβ”€β”€ shareUrl.ts, shortener.ts, urlShort.ts  # URL & share helpers (including /p~ tokens)
β”œβ”€β”€ qrExport.ts             # Export sigil/Ξ¦ data to QR
β”œβ”€β”€ domHead.ts              # Document head management (title/meta)
β”œβ”€β”€ sanitizeHtml.ts         # Clean user HTML (guards against XSS)
β”œβ”€β”€ kopyFeedback.ts         # Copy-to-clipboard UX helpers
β”œβ”€β”€ solarSync.ts            # Sync Kai-Solar mapping for clocks/kalendar
β”œβ”€β”€ valuation.ts            # Valuation and price computation helpers
β”œβ”€β”€ globalTokenRegistry.ts  # Registry of tokens seen/used in session
β”œβ”€β”€ payload.ts              # Canonical payload builder/parser
β”œβ”€β”€ extractKaiMetadata.ts   # Extract Kai metadata from sigils / payloads
β”œβ”€β”€ useClientReady.ts       # Hook for client-only logic (no SSR mismatch)
β”œβ”€β”€ useSigilPayload.ts      # Main sigil payload hook
└── useSigilPayload copy.ts # Legacy/backup (cleanup candidate)

This folder is the core protocol utility layer for the client: time, math, value, sigils, URLs, and sync.


16.12 src/verifier/ β€” Verifier Logic

src/verifier/
└── validator.ts            # Core validation routines for sigil/Ξ¦ payloads

This is the non-UI brain for verification, consumed by the Verifier UI components.


Proof of Breathβ„’ is a sovereign, cryptographic time protocol that deterministically seals identity, authorship, and value to the exact breath-indexed lattice of reality β€” not clock time.

About

Earn, Entertain, Engage & Exchange

Resources

License

Stars

Watchers

Forks

Packages

No packages published