Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
174 commits
Select commit Hold shift + click to select a range
5366aad
Plan of action
tcsenpai Jun 4, 2025
b228b2e
added database structure for offline messages
Jun 5, 2025
8ff4f1d
just an addition to the ignore
Jun 5, 2025
d1ca864
Updated action plan for better l2ps imp
Jun 8, 2025
fcfa880
started new l2ps structure
Jun 12, 2025
e9ef066
dubious integration of ucrypto transaction type into this branch
Jun 14, 2025
30ffc92
l2ps implementation status tracking
Jun 14, 2025
c83be55
version bumps
Jun 14, 2025
1cb1e95
refactoring of parallelNetworks l2ps wrapper using the new l2ps logic…
Jun 14, 2025
4b8eaa8
dependant files update following the upgrade to the new l2ps
Jun 14, 2025
029625a
ignoring sensitive files
Jun 14, 2025
7c14d9e
documented the class
Jun 14, 2025
2209e06
Merge branch 'testnet' into imp_persistent
Jun 14, 2025
55851d2
better approach to transaction class
Jun 14, 2025
b2c10df
claude.md ignored
Jun 14, 2025
3c66730
using the generic transaction validation
Jun 14, 2025
8fd6941
Merge branch 'testnet' into imp_persistent
tcsenpai Jun 14, 2025
665171e
Merge branch 'testnet' into l2ps_simplified
Jun 25, 2025
81c39af
fixed import with the new tx type
Jun 25, 2025
5f4bf76
Merge branch 'dtr' into l2ps_simplified
Jun 25, 2025
12b05b5
Improved l2ps loading when handling a L2PSTransaction
Jun 25, 2025
c2ffb2b
simplified action plan for l2ps based on DTR
Jun 26, 2025
70d8beb
created l2ps mempool object and entity
Jun 26, 2025
73b9f1e
corrected some implementation details
Jun 28, 2025
1b0c155
Merge branch 'testnet' into l2ps_simplified
tcsenpai Jul 2, 2025
3650f9e
added L2PS Hash service to periodically create hashes of l2ps tables
Jul 8, 2025
b1bc29e
added new tx type for distributing the L2PS hashes to the DTR
Jul 8, 2025
c7d1ee6
updated plan
Jul 8, 2025
5c5fe27
ignored files
Jul 8, 2025
262620a
improved hash service and sdk version bump
tcsenpai Jul 10, 2025
333f108
Merge branch 'testnet' into l2ps_simplified
tcsenpai Jul 10, 2025
51b93f1
Implement Phase 3b: Validator Hash Storage for L2PS
Nov 6, 2025
42d42ee
Implement Phase 3c-1: Complete L2PS NodeCall Endpoints
Nov 6, 2025
a54044d
Implement Phase 3c-2: Create L2PS Concurrent Sync Service
Nov 6, 2025
80bc0d6
Implement Phase 3c-3: Integrate L2PS Sync with Blockchain Sync
Nov 6, 2025
36b03f2
docs: Complete L2PS implementation documentation and testing guide
Nov 6, 2025
ff9b927
added memories
Nov 6, 2025
09b871c
configured serena
Nov 6, 2025
7862b05
ignores
Nov 6, 2025
0c8895d
lints
Nov 6, 2025
93a74e0
added onboarding for l2ps
Nov 6, 2025
00022c6
saved session for l2ps
Nov 6, 2025
f11afe5
Fix L2PS return type and pre-existing issues
Nov 6, 2025
d6e95fd
Fix DTR validator shuffle algorithm (fix dtr behavior)
Nov 6, 2025
b9c63cc
ignores
Nov 6, 2025
940b9f8
committed pr fixes
Nov 7, 2025
48d344f
Fix 9 critical and high-priority issues from PR review
Nov 7, 2025
2362537
Fix 16 critical and high-priority issues from CodeRabbit PR review
Nov 7, 2025
750eb91
fixed some files due to reviews
Nov 7, 2025
3793c6a
Fix 3 issues from CodeRabbit validation review
Nov 8, 2025
e114000
Fix 8 critical and high-priority issues from CodeRabbit PR review
Nov 8, 2025
24c7a19
Fix CodeRabbit Issue #1: Make blockchain storage mandatory for both p…
Nov 8, 2025
62b5978
ignores
Nov 8, 2025
27fef3a
Merge branch 'testnet' into l2ps_simplified
tcsenpai Nov 8, 2025
1a80ae2
added memories
Nov 9, 2025
5ae13fc
Phase 3: Implement basic ZK-SNARK identity circuit
Nov 9, 2025
41c0fe4
Phase 4: Implement Merkle tree management for commitments
Nov 9, 2025
b70b5de
Phase 5: Implement enhanced circuit with Merkle proof verification
Nov 9, 2025
c26f6a1
Phase 6: ZK Proof Verification (Node-Side)
Nov 9, 2025
784ac57
Phase 7: Transaction Types & GCR Integration
Nov 9, 2025
74eab28
Phase 8: RPC Endpoints
Nov 9, 2025
887ff8b
Phase 10.1: Configurable ZK attestation points
Nov 9, 2025
c3fdc32
fix: Add Bun-compatible ZK proof verification (single-threaded mode)
Nov 10, 2025
53d71e6
Merge branch 'testnet' into l2ps_simplified
tcsenpai Nov 10, 2025
41119ac
refactor: Move ZK test files to src/tests directory
Nov 10, 2025
e59861a
fix: Apply 8 autofixes from CodeRabbit ZK review
Nov 10, 2025
59f6848
fix(zk): CRITICAL - Add secret to nullifier computation for privacy
Nov 10, 2025
b683a1f
feat(zk): Update verification key for privacy-fixed circuit
Nov 10, 2025
0d468f8
docs: Mark Issue #1 (Circuit Privacy) as completed in PR_TOFIX.md
Nov 10, 2025
37ee69d
fix(zk): Wrap Merkle rollback in transaction to prevent corruption
Nov 10, 2025
b2e2d11
docs: Mark Issue #3 (Merkle Rollback) as completed in PR_TOFIX.md
Nov 10, 2025
bd0305e
fix(zk): Remove TOCTOU race in commitment insertion
Nov 10, 2025
a4c676f
docs: Mark Issue #5 (Duplicate Commitment) as completed in PR_TOFIX.md
Nov 10, 2025
31c6339
fix(zk): Add constraint violation handling for double-attestation pre…
Nov 10, 2025
d97738c
docs: Mark Issue #2 (Nullifier TOCTOU) as completed in PR_TOFIX.md
Nov 10, 2025
ce1c024
Fix Issue #4: Atomic block commit + Merkle tree update
Nov 10, 2025
52d03f7
Update PR_TOFIX: Mark Issue #4 as completed
Nov 10, 2025
9d5e5dc
Fix Issue #6: Add comprehensive ZK proof verification tests
Nov 10, 2025
572dc43
Cleanup: Remove PR_TOFIX.md and ignore circom .sym files
Nov 10, 2025
db04c09
Code quality improvements from review (LOW/MEDIUM issues)
Nov 10, 2025
3a2ff15
Fix CRITICAL and HIGH priority review issues
Nov 10, 2025
498f7ba
Fix CRITICAL race conditions and transaction boundaries
Nov 10, 2025
01e393a
fix(zk): Security hardening and bug fixes from CodeRabbit review
Nov 10, 2025
990912b
fix(zk): Security and quality improvements from CodeRabbit review
Nov 11, 2025
6178408
fix: second round of CodeRabbit review fixes (9 issues)
Nov 11, 2025
7c71e5d
fix(zk): Fix 13 priority issues from third CodeRabbit review
Nov 11, 2025
ff604be
Fix 6 priority issues from CodeRabbit Round 4 review
Nov 11, 2025
bbaa58d
Fix Round 5 CodeRabbit issues: 6 HIGH/MEDIUM priority fixes
Nov 11, 2025
3abf041
Fix CRITICAL #1: Replace optimistic locking with pessimistic locking
Nov 11, 2025
ef3350b
ignored files
Nov 11, 2025
8f742f9
Fix CRITICAL regression: Clear initializationPromise on error to enab…
Nov 11, 2025
0e250c6
Fix Round 6 Issues #1, #3, #6a: Type consistency, IC validation, circ…
Nov 11, 2025
e176419
Add production ZK key regeneration guide and automation script
Nov 11, 2025
9e05f67
SECURITY: Fix Issue #4 - Add contribution phase for production-safe Z…
Nov 11, 2025
00be46f
chore: Update test to check for contributed proving key (_0001.zkey)
Nov 11, 2025
c619b46
fix: Revert incorrect circomlib path and regenerate basic circuit key
Nov 11, 2025
74c87ed
better organization for the repo
Nov 11, 2025
035345c
fix: ZK-SNARK autofixes from CodeRabbit review (10 issues)
Nov 12, 2025
6d0bd3a
security fixes
Nov 12, 2025
7f27094
bumped deps
Nov 12, 2025
f70e6a5
memories
Nov 19, 2025
55db2c7
updated ceremony script
Nov 25, 2025
9792aff
added support for pubkey format
Nov 25, 2025
08aa237
feat: Implemented L2 Batch aggregator to submit L2 Txs to Main
Shitikyan Nov 26, 2025
32a0a8c
feat: added nonce in L2
Shitikyan Nov 29, 2025
a1082d1
fix: update import paths for L2PSTransaction and SerializedEncryptedO…
Shitikyan Dec 3, 2025
d1bdc64
feat: Enhance L2PS transaction handling with signature verification a…
Shitikyan Dec 3, 2025
11f2310
Merge branch 'testnet' of https://github.com/Shitikyan/node into l2ps…
Shitikyan Dec 4, 2025
6af2eca
feat: Implement persistent nonce management for L2PS batch transactions
Shitikyan Dec 4, 2025
df024b0
fix: use bun instead of tsx for ceremony script
Dec 4, 2025
a834f6e
fix: replace npx with bunx for bun compatibility
Dec 4, 2025
85cc4e7
Revert "fix: replace npx with bunx for bun compatibility"
Dec 4, 2025
dcd4afb
fix: use full npx path to handle PATH issues in subprocesses
Dec 4, 2025
168ecf1
fix: improve npx detection with explicit PATH and better error handling
Dec 4, 2025
cea501a
fix: hardcode npx path to /usr/bin/npx in all ZK scripts
Dec 4, 2025
704f5dc
fix: use /bin/bash for execSync and fix variable shadowing in catch b…
Dec 4, 2025
54493f2
fix: use plain npx with env pass-through for PATH resolution
Dec 4, 2025
78f665d
test: hardcode npx to /usr/local/bin/npx
Dec 4, 2025
aa76fc2
fix: use node to execute npx explicitly (shebang not resolving in sub…
Dec 4, 2025
1c5a01a
fix: use full paths to node and npx module to avoid bun interception
Dec 4, 2025
83cf132
fix: correct node path to /usr/bin/node
Dec 4, 2025
f52a4d3
fix: use node/tsx instead of bun for ceremony script
Dec 4, 2025
fbb8534
feat: Implement L2PS Proof Manager and Transaction Executor
Shitikyan Dec 5, 2025
512eabc
fix: Update L2PS transaction handling and mempool status updates for …
Shitikyan Dec 5, 2025
483046a
feat: Enhance L2PS mempool and transaction handling with improved err…
Shitikyan Dec 5, 2025
a9e4837
init beads for the project
Dec 6, 2025
abb3c99
chore(beads): commit untracked JSONL files
Dec 6, 2025
976eeec
updated beads and memories
Dec 6, 2025
f0ae38f
updated with beads
Dec 6, 2025
330ae8a
ignored
Dec 6, 2025
c35ba01
ignores
Dec 6, 2025
0219962
cleaned up beads
Dec 6, 2025
34e3ab5
refactor: Improve sorting and error handling in L2PS modules; enhance…
Shitikyan Dec 8, 2025
fcd46f6
refactor: Improve sorting of L2PS networks and update TODO comments f…
Shitikyan Dec 8, 2025
3b1e134
refactor: Enhance error handling and validation in L2PS transaction p…
Shitikyan Dec 8, 2025
b1c8267
refactor: Improve error logging in L2PSBatchAggregator and enhance va…
Shitikyan Dec 8, 2025
212aae2
refactor: Simplify statistics initialization in L2PSBatchAggregator a…
Shitikyan Dec 8, 2025
c1ebef8
feat: Implement L2PS Batch Prover for PLONK proofs
Shitikyan Dec 11, 2025
36e2071
refactor: Enhance transaction retrieval and error handling in Chain c…
Shitikyan Dec 12, 2025
7fcc912
refactor: Update ZK proof verification to include transaction count a…
Shitikyan Dec 12, 2025
fbe206a
refactor: Improve error handling and logging in L2PS components; enha…
Shitikyan Jan 5, 2026
624887e
refactor: Enhance error handling and logging across L2PS components f…
Shitikyan Jan 5, 2026
320bb03
refactor: Improve error logging for L2PS components to enhance clarit…
Shitikyan Jan 5, 2026
472d66e
refactor: Enhance error message handling across L2PS components for i…
Shitikyan Jan 5, 2026
5ab0e5d
refactor: Standardize error message handling across L2PS components f…
Shitikyan Jan 5, 2026
8e02698
refactor: Implement centralized error message handling across L2PS co…
Shitikyan Jan 5, 2026
f400033
refactor: Improve argument parsing logic in parseArgs function for be…
Shitikyan Jan 5, 2026
449808c
feat: refactor L2PS components for improved privacy and performance
Shitikyan Jan 8, 2026
0f09aa6
Merge upstream/testnet into l2ps_implementation
Shitikyan Jan 9, 2026
e4ec320
feat: implement L2PS handlers and serialization for OmniProtocol comm…
Shitikyan Jan 9, 2026
95e151e
Merge upstream/testnet into l2ps_implementation
Shitikyan Jan 12, 2026
88f5cb3
Merge branch 'l2ps_simplified' of https://github.com/kynesyslabs/node…
Shitikyan Jan 12, 2026
2ead2b2
Merge branch 'l2ps_simplified' into l2ps_implementation
Shitikyan Jan 12, 2026
0b5fdc0
feat: enhance L2PS transaction handling and validation, improve proof…
Shitikyan Jan 13, 2026
6bcd70c
Merge branch 'l2ps_implementation' of https://github.com/Shitikyan/no…
Shitikyan Jan 13, 2026
c13e5fe
fix: address CodeRabbit review comments - null check, nonce increment…
Shitikyan Jan 13, 2026
d86d98f
feat: update circomlibjs type declarations to improve field element h…
Shitikyan Jan 14, 2026
bb4977c
fix: handle BigInt conversion errors in L2PSBatchAggregator to preven…
Shitikyan Jan 14, 2026
a868d22
feat: Implement L2PS account transaction history endpoint with signat…
Shitikyan Jan 19, 2026
d4054bb
feat: Implement L2PS concurrent mempool synchronization with particip…
Shitikyan Jan 20, 2026
a6e9681
feat: Add L2PS architecture documentation, node certificates, and mne…
Shitikyan Jan 21, 2026
08e7ee1
fix: l2ps transactions status update
Shitikyan Jan 22, 2026
daa4822
feat: Add L2PS architecture diagrams, node keys, and mnemonic, while …
Shitikyan Jan 29, 2026
6cc313a
feat: Add zero-knowledge proof circuit keys and artifacts for batch 5…
Shitikyan Jan 29, 2026
12828a7
Merge pull request #514 from Shitikyan/l2ps_implementation
tcsenpai Jan 31, 2026
9029880
refactor: modularize L2PS load test script into distinct functions an…
Shitikyan Feb 2, 2026
5179437
Merge branch 'testnet' of https://github.com/kynesyslabs/node into l2…
Shitikyan Feb 2, 2026
edfc90c
feat: enhance L2PS transaction handling with hash verification and ZK…
Shitikyan Feb 2, 2026
0c17c1a
feat: Enhance L2PS ZK batch circuit with range checks and underflow p…
Shitikyan Feb 2, 2026
ea0652e
feat: Implement atomic sequence allocation with retries for L2PS memp…
Shitikyan Feb 2, 2026
9db0e13
fix: add L2PS circuit underflow protection and refactor graceful shut…
Shitikyan Feb 3, 2026
71d4071
Merge branch 'zk_ids' of https://github.com/kynesyslabs/node into fea…
Shitikyan Feb 9, 2026
11e2311
Merge branch 'l2ps_simplified' of https://github.com/kynesyslabs/node…
Shitikyan Feb 9, 2026
3347ffc
feat: Add ZK circuit artifacts for l2ps batch_5 and batch_10, update …
Shitikyan Feb 9, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .beads/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# SQLite databases
*.db
*.db?*
*.db-journal
*.db-wal
*.db-shm

# Daemon runtime files
daemon.lock
daemon.log
daemon.pid
bd.sock

# Legacy database files
db.sqlite
bd.db

# Merge artifacts (temporary files from 3-way merge)
beads.base.jsonl
beads.base.meta.json
beads.left.jsonl
beads.left.meta.json
beads.right.jsonl
beads.right.meta.json

# Keep JSONL exports and config (source of truth for git)
!issues.jsonl
!metadata.json
!config.json
81 changes: 81 additions & 0 deletions .beads/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
# Beads - AI-Native Issue Tracking

Welcome to Beads! This repository uses **Beads** for issue tracking - a modern, AI-native tool designed to live directly in your codebase alongside your code.

## What is Beads?

Beads is issue tracking that lives in your repo, making it perfect for AI coding agents and developers who want their issues close to their code. No web UI required - everything works through the CLI and integrates seamlessly with git.

**Learn more:** [github.com/steveyegge/beads](https://github.com/steveyegge/beads)

## Quick Start

### Essential Commands

```bash
# Create new issues
bd create "Add user authentication"

# View all issues
bd list

# View issue details
bd show <issue-id>

# Update issue status
bd update <issue-id> --status in_progress
bd update <issue-id> --status done

# Sync with git remote
bd sync
```

### Working with Issues

Issues in Beads are:
- **Git-native**: Stored in `.beads/issues.jsonl` and synced like code
- **AI-friendly**: CLI-first design works perfectly with AI coding agents
- **Branch-aware**: Issues can follow your branch workflow
- **Always in sync**: Auto-syncs with your commits

## Why Beads?

**AI-Native Design**
- Built specifically for AI-assisted development workflows
- CLI-first interface works seamlessly with AI coding agents
- No context switching to web UIs

🚀 **Developer Focused**
- Issues live in your repo, right next to your code
- Works offline, syncs when you push
- Fast, lightweight, and stays out of your way

🔧 **Git Integration**
- Automatic sync with git commits
- Branch-aware issue tracking
- Intelligent JSONL merge resolution

## Get Started with Beads

Try Beads in your own projects:

```bash
# Install Beads
curl -sSL https://raw.githubusercontent.com/steveyegge/beads/main/scripts/install.sh | bash

# Initialize in your repo
bd init

# Create your first issue
bd create "Try out Beads"
```

## Learn More

- **Documentation**: [github.com/steveyegge/beads/docs](https://github.com/steveyegge/beads/tree/main/docs)
- **Quick Start Guide**: Run `bd quickstart`
- **Examples**: [github.com/steveyegge/beads/examples](https://github.com/steveyegge/beads/tree/main/examples)

---

*Beads: Issue tracking that moves at the speed of thought*
62 changes: 62 additions & 0 deletions .beads/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# Beads Configuration File
# This file configures default behavior for all bd commands in this repository
# All settings can also be set via environment variables (BD_* prefix)
# or overridden with command-line flags
sync-branch: beads-sync
# Issue prefix for this repository (used by bd init)
# If not set, bd init will auto-detect from directory name
# Example: issue-prefix: "myproject" creates issues like "myproject-1", "myproject-2", etc.
# issue-prefix: ""

# Use no-db mode: load from JSONL, no SQLite, write back after each command
# When true, bd will use .beads/issues.jsonl as the source of truth
# instead of SQLite database
# no-db: false

# Disable daemon for RPC communication (forces direct database access)
# no-daemon: false

# Disable auto-flush of database to JSONL after mutations
# no-auto-flush: false

# Disable auto-import from JSONL when it's newer than database
# no-auto-import: false

# Enable JSON output by default
# json: false

# Default actor for audit trails (overridden by BD_ACTOR or --actor)
# actor: ""

# Path to database (overridden by BEADS_DB or --db)
# db: ""

# Auto-start daemon if not running (can also use BEADS_AUTO_START_DAEMON)
# auto-start-daemon: true

# Debounce interval for auto-flush (can also use BEADS_FLUSH_DEBOUNCE)
# flush-debounce: "5s"

# Git branch for beads commits (bd sync will commit to this branch)
# IMPORTANT: Set this for team projects so all clones use the same sync branch.
# This setting persists across clones (unlike database config which is gitignored).
# Can also use BEADS_SYNC_BRANCH env var for local override.
# If not set, bd sync will require you to run 'bd config set sync.branch <branch>'.
# sync-branch: "beads-sync"

# Multi-repo configuration (experimental - bd-307)
# Allows hydrating from multiple repositories and routing writes to the correct JSONL
# repos:
# primary: "." # Primary repo (where this database lives)
# additional: # Additional repos to hydrate from (read-only)
# - ~/beads-planning # Personal planning repo
# - ~/work-planning # Work planning repo

# Integration settings (access with 'bd config get/set')
# These are stored in the database, not in this file:
# - jira.url
# - jira.project
# - linear.url
# - linear.api-key
# - github.org
# - github.repo
29 changes: 29 additions & 0 deletions .beads/deletions.jsonl
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{"id":"node-67f","ts":"2025-12-06T09:42:23.171680064+01:00","by":"bd-doctor-hydrate","reason":"Hydrated from git history"}
{"id":"node-d82","ts":"2025-12-06T09:42:23.171680064+01:00","by":"bd-doctor-hydrate","reason":"Hydrated from git history"}
{"id":"node-w8x","ts":"2025-12-06T09:42:23.171680064+01:00","by":"bd-doctor-hydrate","reason":"Hydrated from git history"}
{"id":"node-bh1","ts":"2025-12-06T09:42:23.171680064+01:00","by":"bd-doctor-hydrate","reason":"Hydrated from git history"}
{"id":"node-aqw","ts":"2025-12-06T09:42:23.171680064+01:00","by":"bd-doctor-hydrate","reason":"Hydrated from git history"}
{"id":"node-cty","ts":"2025-12-06T09:42:23.171680064+01:00","by":"bd-doctor-hydrate","reason":"Hydrated from git history"}
{"id":"node-j7r","ts":"2025-12-06T09:42:23.171680064+01:00","by":"bd-doctor-hydrate","reason":"Hydrated from git history"}
{"id":"node-oa5","ts":"2025-12-06T09:42:23.171680064+01:00","by":"bd-doctor-hydrate","reason":"Hydrated from git history"}
{"id":"node-99g.5","ts":"2025-12-06T09:42:23.171680064+01:00","by":"bd-doctor-hydrate","reason":"Hydrated from git history"}
{"id":"node-99g.6","ts":"2025-12-06T09:42:23.171680064+01:00","by":"bd-doctor-hydrate","reason":"Hydrated from git history"}
{"id":"node-99g.7","ts":"2025-12-06T09:42:23.171680064+01:00","by":"bd-doctor-hydrate","reason":"Hydrated from git history"}
{"id":"node-s48","ts":"2025-12-06T09:42:23.171680064+01:00","by":"bd-doctor-hydrate","reason":"Hydrated from git history"}
{"id":"node-wrd","ts":"2025-12-06T09:42:23.171680064+01:00","by":"bd-doctor-hydrate","reason":"Hydrated from git history"}
{"id":"node-b7d","ts":"2025-12-06T09:42:23.171680064+01:00","by":"bd-doctor-hydrate","reason":"Hydrated from git history"}
{"id":"node-k28","ts":"2025-12-06T09:42:23.171680064+01:00","by":"bd-doctor-hydrate","reason":"Hydrated from git history"}
{"id":"node-636","ts":"2025-12-06T09:42:23.171680064+01:00","by":"bd-doctor-hydrate","reason":"Hydrated from git history"}
{"id":"node-99g","ts":"2025-12-06T09:42:23.171680064+01:00","by":"bd-doctor-hydrate","reason":"Hydrated from git history"}
{"id":"node-99g.1","ts":"2025-12-06T09:42:23.171680064+01:00","by":"bd-doctor-hydrate","reason":"Hydrated from git history"}
{"id":"node-99g.3","ts":"2025-12-06T09:42:23.171680064+01:00","by":"bd-doctor-hydrate","reason":"Hydrated from git history"}
{"id":"node-9gr","ts":"2025-12-06T09:42:23.171680064+01:00","by":"bd-doctor-hydrate","reason":"Hydrated from git history"}
{"id":"node-9ms","ts":"2025-12-06T09:42:23.171680064+01:00","by":"bd-doctor-hydrate","reason":"Hydrated from git history"}
{"id":"node-ecu","ts":"2025-12-06T09:42:23.171680064+01:00","by":"bd-doctor-hydrate","reason":"Hydrated from git history"}
{"id":"node-egh","ts":"2025-12-06T09:42:23.171680064+01:00","by":"bd-doctor-hydrate","reason":"Hydrated from git history"}
{"id":"node-99g.2","ts":"2025-12-06T09:42:23.171680064+01:00","by":"bd-doctor-hydrate","reason":"Hydrated from git history"}
{"id":"node-99g.4","ts":"2025-12-06T09:42:23.171680064+01:00","by":"bd-doctor-hydrate","reason":"Hydrated from git history"}
{"id":"node-99g.8","ts":"2025-12-06T09:42:23.171680064+01:00","by":"bd-doctor-hydrate","reason":"Hydrated from git history"}
{"id":"node-1q8","ts":"2025-12-06T09:42:23.171680064+01:00","by":"bd-doctor-hydrate","reason":"Hydrated from git history"}
{"id":"node-66u","ts":"2025-12-06T09:42:23.171680064+01:00","by":"bd-doctor-hydrate","reason":"Hydrated from git history"}
{"id":"node-hxv","ts":"2025-12-06T09:21:58.542706946Z","by":"tcsenpai","reason":"manual delete"}
6 changes: 6 additions & 0 deletions .beads/issues.jsonl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{"id":"node-8ka","title":"ZK Identity System - Phase 6-8: Node Integration","description":"ProofVerifier, GCR transaction types (zk_commitment_add, zk_attestation_add), RPC endpoints (/zk/merkle-root, /zk/merkle/proof, /zk/nullifier)","status":"closed","priority":1,"issue_type":"epic","created_at":"2025-12-06T09:43:09.277685498+01:00","updated_at":"2025-12-06T09:43:25.850988068+01:00","closed_at":"2025-12-06T09:43:25.850988068+01:00","labels":["gcr","node","zk"],"dependencies":[{"issue_id":"node-8ka","depends_on_id":"node-94a","type":"blocks","created_at":"2025-12-06T09:43:16.947262666+01:00","created_by":"daemon"}]}
{"id":"node-94a","title":"ZK Identity System - Phase 1-5: Core Cryptography","description":"Core ZK-SNARK cryptographic foundation using Groth16/Poseidon. Includes circuits, Merkle tree, database entities.","status":"closed","priority":1,"issue_type":"epic","created_at":"2025-12-06T09:43:09.180321179+01:00","updated_at":"2025-12-06T09:43:25.782519636+01:00","closed_at":"2025-12-06T09:43:25.782519636+01:00","labels":["cryptography","groth16","zk"]}
{"id":"node-9q4","title":"ZK Identity System - Phase 9: SDK Integration","description":"SDK CommitmentService (poseidon-lite), ProofGenerator (snarkjs), ZKIdentity class. Located in ../sdks/src/encryption/zK/","status":"closed","priority":1,"issue_type":"epic","created_at":"2025-12-06T09:43:09.360890667+01:00","updated_at":"2025-12-06T09:43:25.896325192+01:00","closed_at":"2025-12-06T09:43:25.896325192+01:00","labels":["sdk","zk"],"dependencies":[{"issue_id":"node-9q4","depends_on_id":"node-8ka","type":"blocks","created_at":"2025-12-06T09:43:16.997274204+01:00","created_by":"daemon"}]}
{"id":"node-a95","title":"ZK Identity System - Future: Verify-and-Delete Flow","description":"zk_verified_commitment: OAuth verify + create ZK commitment + skip public record (privacy preservation). See serena memory: zk_verify_and_delete_plan","status":"open","priority":2,"issue_type":"feature","created_at":"2025-12-06T09:43:09.576634316+01:00","updated_at":"2025-12-06T09:43:09.576634316+01:00","labels":["future","privacy","zk"],"dependencies":[{"issue_id":"node-a95","depends_on_id":"node-dj4","type":"blocks","created_at":"2025-12-06T09:43:17.134669302+01:00","created_by":"daemon"}]}
{"id":"node-bj2","title":"ZK Identity System - Phase 10: Trusted Setup Ceremony","description":"Multi-party ceremony with 40+ nodes. Script: src/features/zk/scripts/ceremony.ts. Generates final proving/verification keys.","notes":"Currently running ceremony with 40+ nodes on separate repo. Script ready at src/features/zk/scripts/ceremony.ts","status":"in_progress","priority":1,"issue_type":"epic","created_at":"2025-12-06T09:43:09.430249817+01:00","updated_at":"2025-12-06T09:43:25.957018289+01:00","labels":["ceremony","security","zk"],"dependencies":[{"issue_id":"node-bj2","depends_on_id":"node-9q4","type":"blocks","created_at":"2025-12-06T09:43:17.036700285+01:00","created_by":"daemon"}]}
{"id":"node-dj4","title":"ZK Identity System - Phase 11: CDN Deployment","description":"Upload WASM, proving keys to CDN. Update SDK ProofGenerator with CDN URLs. See serena memory: zk_technical_architecture","status":"open","priority":2,"issue_type":"epic","created_at":"2025-12-06T09:43:09.507162284+01:00","updated_at":"2025-12-06T09:43:09.507162284+01:00","labels":["cdn","deployment","zk"],"dependencies":[{"issue_id":"node-dj4","depends_on_id":"node-bj2","type":"blocks","created_at":"2025-12-06T09:43:17.091861452+01:00","created_by":"daemon"}]}
4 changes: 4 additions & 0 deletions .beads/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"database": "beads.db",
"jsonl_export": "issues.jsonl"
}
39 changes: 28 additions & 11 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,39 @@ DISCORD_BOT_TOKEN=
GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=

# OmniProtocol TCP Server (optional - disabled by default)
# ===========================================
# L2PS (Layer 2 Private System) Configuration
# ===========================================

# Batch Aggregator Settings
L2PS_AGGREGATION_INTERVAL_MS=10000
L2PS_MIN_BATCH_SIZE=1
L2PS_MAX_BATCH_SIZE=10
L2PS_CLEANUP_AGE_MS=300000

# ZK Proof Settings
L2PS_ZK_ENABLED=true

# Hash Service Settings
L2PS_HASH_INTERVAL_MS=5000

# ===========================================
# OmniProtocol TCP Server Configuration
# ===========================================
OMNI_ENABLED=false
OMNI_PORT=3001
# OMNI_MODE: HTTP_ONLY (server only), OMNI_PREFERRED (try OmniProtocol first), OMNI_ONLY (force OmniProtocol)
OMNI_MODE=OMNI_ONLY
# OMNI_FATAL: Exit on OmniProtocol errors instead of falling back to HTTP (useful for testing)
OMNI_FATAL=false

# OmniProtocol TLS Encryption (optional)
# OmniProtocol TLS Encryption
OMNI_TLS_ENABLED=false
OMNI_TLS_MODE=self-signed
OMNI_CERT_PATH=./certs/node-cert.pem
OMNI_KEY_PATH=./certs/node-key.pem
OMNI_CA_PATH=
OMNI_TLS_MIN_VERSION=TLSv1.3

# OmniProtocol Rate Limiting (recommended for production)
# OmniProtocol Rate Limiting
OMNI_RATE_LIMIT_ENABLED=true
OMNI_MAX_CONNECTIONS_PER_IP=10
OMNI_MAX_REQUESTS_PER_SECOND_PER_IP=100
Expand All @@ -47,15 +63,16 @@ METRICS_ENABLED=true
METRICS_PORT=9090
METRICS_HOST=0.0.0.0

# TLSNotary HTTPS Attestation (optional - disabled by default)
# Enables MPC-TLS attestation for verifiable HTTPS proofs
# ===========================================
# TLSNotary HTTPS Attestation Configuration
# ===========================================
TLSNOTARY_ENABLED=false
TLSNOTARY_PORT=7047
# TLSNOTARY_SIGNING_KEY: 32-byte hex secp256k1 private key (required if enabled)
# Generate with: openssl rand -hex 32
TLSNOTARY_SIGNING_KEY=
# WebSocket proxy port for browser TCP tunneling
TLSNOTARY_PROXY_PORT=55688
# Optional: Adjust data limits (bytes)
TLSNOTARY_MAX_SENT_DATA=16384
TLSNOTARY_MAX_RECV_DATA=65536

# ZK Identity System Configuration
# Points awarded for each successful ZK attestation (default: 10)
ZK_ATTESTATION_POINTS=10
Loading