Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
105 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
53d71e6
Merge branch 'testnet' into l2ps_simplified
tcsenpai Nov 10, 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
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
f0ae38f
updated with beads
Dec 6, 2025
330ae8a
ignored
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
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
1 change: 1 addition & 0 deletions .beads/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sync-branch: beads-sync
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": "beads.left.jsonl"
}
35 changes: 24 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,12 @@ 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
88 changes: 53 additions & 35 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# Beads issue tracker (branch-specific, like .serena)
.beads/

# Specific branches ignores
*APTOS*.md
*_TO_PORT.md
Expand Down Expand Up @@ -111,17 +108,32 @@ src/GTAGS
# Output files
output/*
.env
bun.lockb

# L2PS files
CLAUDE.md
data/l2ps/example/config.json
data/l2ps/example/iv.key
data/l2ps/example/config.json
data/l2ps/example/iv.key
data/l2ps/*

# Claude specific files
CLAUDE.md
GEMINI.md

architecture.gitbook-cache.json
architecture
architecture
Comment on lines 114 to 127
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Remove duplicate ignore entries.

Several entries are duplicated, creating redundancy and suggesting the file wasn't carefully reviewed before commit:

  • Line 114 (CLAUDE.md) duplicates line 122
  • Lines 115–116 (data/l2ps/example/*) duplicate lines 117–118
  • Line 126 (architecture) duplicates line 127
  • Line 119 (data/l2ps/*) already covers the example/ subdirectory entries, making lines 115–118 partially redundant

Clean up the duplicates and consolidate patterns where feasible to keep the file maintainable.

Suggested cleanup:

 # L2PS files
-CLAUDE.md
-data/l2ps/example/config.json
-data/l2ps/example/iv.key
 data/l2ps/example/config.json
 data/l2ps/example/iv.key
 data/l2ps/*
 
 # Claude specific files
 CLAUDE.md
-architecture
 architecture

Or, if the broader pattern data/l2ps/* is preferred, remove the more specific example/ entries entirely.

Committable suggestion skipped: line range outside the PR's diff.

🤖 Prompt for AI Agents
In .gitignore around lines 114 to 127, there are duplicate and redundant entries
(CLAUDE.md repeated, data/l2ps/example/config.json and iv.key duplicated,
data/l2ps/* already covers the example/ entries, and architecture repeated);
remove the duplicated lines and consolidate by keeping a single CLAUDE.md,
remove the specific data/l2ps/example/* lines if you keep data/l2ps/* (or vice
versa), and keep only one architecture entry so each ignore pattern appears
once.

.DS_Store
.serena-backup
PR_COMMENTS
bridges_docs
claudedocs
dist
docs
local_tests
omniprotocol_fixtures_scripts
Comment on lines +129 to +136
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Remove redundant bridges_docs ignore entry.

bridges_docs/ is already ignored earlier; the new bridges_docs entry is redundant and inconsistent with the trailing slash style.

🧹 Suggested cleanup
-bridges_docs
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
.serena-backup
PR_COMMENTS
bridges_docs
claudedocs
dist
docs
local_tests
omniprotocol_fixtures_scripts
.serena-backup
PR_COMMENTS
claudedocs
dist
docs
local_tests
omniprotocol_fixtures_scripts
🤖 Prompt for AI Agents
In @.gitignore around lines 129 - 136, The .gitignore contains a redundant entry
"bridges_docs" (without trailing slash) that duplicates the existing
"bridges_docs/" ignore earlier; remove the duplicate "bridges_docs" line so only
the canonical "bridges_docs/" entry remains and the trailing-slash style is
consistent.

blocked_ips.json
SMART_CONTRACTS_*.md
.gitbook*
Expand All @@ -144,6 +156,20 @@ src/features/bridges/EVMSmartContract/out
src/features/bridges/EVMSmartContract/test
src/features/bridges/EVMSmartContract/GASLESS_BRIDGE_FLOW_DIAGRAM.md
src/features/bridges/EVMSmartContract/USAGE.md
src/features/bridges/SolanaTankProgram/solana_tank/target
src/features/bridges/SolanaTankProgram/SOLANA_TANK_PHASES.md
src/features/bridges/SolanaTankProgram/SOLANA_TANK_SCHEMA.md
src/features/bridges/SolanaTankProgram/SOLANA_TO_PORT.md
src/features/bridges/LiquidityTank_UserGuide.md
src/features/contracts/CONTRACT_PHASES.md
src/features/multichain/chainwares/aptoswares/TECHNICAL_PROPOSAL_APTOS_INTEGRATION.md
temp
.gitbook-cache.json
APTOS_INTEGRATION_PLAN.md
CLAUDE.sync-conflict-20250901-171031-7JPPSQB.md
D402_HTTP_PHASES.md
STORAGE_PROGRAMS_PHASES.md
STORAGE_PROGRAMS_SPEC.md
CLAUDE.sync-conflict-20250901-171031-7JPPSQB.md
.serena/cache/typescript/document_symbols_cache_v23-06-25.pkl
docs/src/
Expand All @@ -155,11 +181,6 @@ docs/src
src/features/bridges/EVMSmartContract/docs
src/features/bridges/LiquidityTank_UserGuide.md
local_tests
docs/storage_features
temp
STORAGE_PROGRAMS_SPEC.md
local_tests/
claudedocs
claudedocs
docs/storage_features
temp
Expand All @@ -169,43 +190,40 @@ captraf.sh
http-capture-1762006580.pcap
http-capture-1762008909.pcap
http-traffic.json
PR_PRE_EXISTING_ISSUES.md
PR_REVIEW.md
REVIEWER_QUESTIONS_ANSWERED.md
PR_REVIEW_RAW.md
PR_REVIEW_FINAL.md
PR_REVIEW_FINAL.md
REVIEWER_QUESTIONS_ANSWERED.md
AGENTS.md
BUGS_AND_SECURITY_REPORT.md
PR_REVIEW_COMPREHENSIVE.md
PR_REVIEW_RAW.md
ZK_CEREMONY_GIT_WORKFLOW.md
ZK_CEREMONY_GUIDE.md
zk_ceremony
CEREMONY_COORDINATION.md
attestation_20251204_125424.txt
prop_agent
CEREMONY_COORDINATION.md
attestation_20251204_125424.txt
prop_agent
claudedocs
temp
STORAGE_PROGRAMS_SPEC.md
captraf.sh
.gitignore
omniprotocol_fixtures_scripts
http-capture-1762006580.pcap
http-traffic.json
http-capture-1762008909.pcap
PR_REVIEW_COMPREHENSIVE.md
PR_REVIEW_RAW.md
BUGS_AND_SECURITY_REPORT.md
REVIEWER_QUESTIONS_ANSWERED.md
ZK_CEREMONY_GIT_WORKFLOW.md
ZK_CEREMONY_GUIDE.md
zk_ceremony
CEREMONY_COORDINATION.md
attestation_20251204_125424.txt
prop_agent
TYPE_CHECK_REPORT.md
qodo-fetch.py
docs/IPFS_TOKENOMICS_SPEC.md

# ZK Artifacts (L2PS)
src/libs/l2ps/zk/keys/**/*.zkey
src/libs/l2ps/zk/keys/**/*.ptau
src/libs/l2ps/zk/keys/**/*.r1cs
src/libs/l2ps/zk/keys/**/*.sym
src/libs/l2ps/zk/keys/**/*.wasm
src/libs/l2ps/zk/keys/**/*_js/
src/libs/l2ps/zk/ptau/
# Allow verification keys
!src/libs/l2ps/zk/keys/**/verification_key.json

# Security & Secrets
mnemonic.txt
certs/
*.pem

# Ops junk
src/libs/network/routines/transactions/*.html
# Devnet runtime files (generated, not tracked)
devnet/identities/
devnet/.env
Expand Down
Loading