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.
- Core Idea (TL;DR)
- Monetary Ontology: 1 Ξ¦ = 1 Breath
- Time: Kai-Klok Deterministic Time Engine
- Identity: Sigil-Glyphs & Ξ¦Keys
- Value Objects: Ξ¦ Notes, Resonance Stream, Memory Crystals
- Zero-Knowledge Proofs & Proof of Breathβ’
- How a Ξ¦ Transaction Works (End-to-End)
- Why Ξ¦ Network Changes the World
- Architecture & Components
- For Users: Getting Started
- For Developers: Integrating with Ξ¦ Network
- Security Model & Threats
- Monetary & Legal Status
- Repository Layout
- Contributing
- License
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
- proving βthis value is breath-backed and belongs to this Ξ¦Keyβ
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.
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.
βBreath-backedβ means:
- 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.
- 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.
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.
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.
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.
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.
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.
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
timestampunder 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.
-
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.
Ξ¦ 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:
- Its issuance was governed by the protocolβs rules.
- Its lineage is consistent with the Resonance Stream.
- Its proofs pass verification.
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.
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:
- Download a recent Memory Crystal.
- Verify its integrity.
- Replay only the suffix of the stream that came after the crystal.
This approach keeps:
- storage light,
- sync fast,
- and auditability intact.
Proof of Breathβ’ is a protocol that:
- Measures or encodes a breath event (or equivalent biometric/temporal imprint) at a given Kai-Klok pulse.
- Derives a Harmonic Identity Frequency (HIF) or equivalent internal identifier.
- 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.
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.
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
Bsatisfies the breath constraints, - compute a commitment
C = H(B, K, T), - enforce
Ξ£(new Ξ¦)underKatTdoes not exceedL, - output
proof Ο.
- verify
- Output:
- A Note (or set of Notes) + proof
Ο.
- 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.
At a high level:
-
Identity Established
- User creates or activates a Ξ¦Key and associated Origin Sigil.
- A baseline Proof of Breathβ’ is recorded (initial registration).
-
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.
-
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.
-
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.
- Nodes validate the transaction:
-
Verification & Audit
- Any user or auditor can:
- recompute Kai-Klok labels,
- replay the stream,
- verify all hashes, signatures, and proofs.
- Any user or auditor can:
At no point does the network require:
- a logged-in email account,
- a password reset,
- or trusting a single institution.
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.
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.
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.
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.
At a high level, Ξ¦ Network consists of:
- Core Protocol
- Definitions for:
- Ξ¦Keys
- Notes
- Resonance Stream
- Memory Crystals
- Kai-Klok time model
- Definitions for:
- Node Implementation
- Applies Resonance Stream events,
- Maintains balances and Memory Crystals,
- Verifies ZK proofs,
- Exposes APIs (HTTP/gRPC) for clients.
- ZK Proof System
- Circuits and verification keys for:
- Proof of Breathβ’,
- identity binding,
- transaction correctness.
- Circuits and verification keys for:
- Client Apps
- Sovereign Gate / Verifier console (Inhale/Exhale),
- Sigil management & viewing,
- KaiOS integration,
- Emission / posting surfaces.
This section is conceptual; concrete app URLs / binaries depend on your deployment.
-
Create or Receive a Sigil-Glyph
- Use a Ξ¦ Network client to generate an origin sigil,
- or receive one from a trusted provider.
-
Register Your Ξ¦Key
- Run the onboarding flow:
- capture breath / biometric as needed,
- generate a Ξ¦Key,
- anchor it with a Proof of Breathβ’ ZK proof.
- Run the onboarding flow:
-
Inhale Ξ¦ (Receive / Mint)
- Get your first Ξ¦ Notes via:
- protocol-governed mint,
- peer transfer,
- or contract flows.
- Get your first Ξ¦ Notes via:
-
Exhale Ξ¦ (Send)
- Use the Verifier console:
- choose amount,
- choose recipient Ξ¦Key,
- sign with your Kai-Signature.
- Use the Verifier console:
-
Verify
- Use built-in explorers or offline tools to:
- verify your sigils,
- confirm balances,
- audit history.
- Use built-in explorers or offline tools to:
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.
Ξ¦ 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.
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.
- 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.
- 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 artifactspublic/
βββ *.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.
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)
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
βββ 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.
βββ 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
βββ 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)
βββ ValuationModal.tsx / *.css # Ξ¦ valuation / price parity modal
βββ ValueHistoryModal.tsx / *.css # Historical value / chart history modal
βββ PhiStreamPopover.tsx # Popover showing Ξ¦ stream snapshots
βββ ExhaleNote.tsx / ExhaleNote.css # Exhale note UI (sending / expression)
βββ exhale-note/ # Folder reserved for exhale-note subcomponents
βββ 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/ # 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/ # (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
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.
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.
src/kai/
βββ KaiNow.ts # Helper for deriving βNowβ in Kai units (pulse/beat/step)
Canonical Kai βnowβ helper used across the app.
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.
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.
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.
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.
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.
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.