Skip to content

Solution: LP-0017 — Whistleblower#58

Open
Tranquil-Flow wants to merge 2 commits into
logos-co:masterfrom
Tranquil-Flow:solution/lp-0017-tranquil-flow
Open

Solution: LP-0017 — Whistleblower#58
Tranquil-Flow wants to merge 2 commits into
logos-co:masterfrom
Tranquil-Flow:solution/lp-0017-tranquil-flow

Conversation

@Tranquil-Flow
Copy link
Copy Markdown

Implementation of LP-0017: censorship-resistant document upload + indexing on the Logos stack.

Repository: https://github.com/Tranquil-Flow/lp-0017-whistleblower (public, MIT + Apache-2.0)

Narrated demo video: https://youtu.be/lMu25io5K-k

What's implemented:

  • Logos Basecamp app (ui/) — Qt6/QML plugin packaged as dist/whistleblower-plugin.lgx. Upload → Logos Storage; broadcast (CID, metadata) envelope → Logos Delivery; optional on-chain anchor via FFI to the LEZ registry.
  • Reusable indexing module (document-indexing crate) — Qt-free Rust core with three dyn-safe trait boundaries (StorageClient / DeliveryClient / RegistryClient). Real LEZ adapter + mock adapter for tests.
  • Permissionless batch CLI (batch/whistleblower-batch) — anyone with a wallet can subscribe to the Delivery topic, dedupe via a sled-backed ledger, and batch-anchor accumulated CIDs idempotently.
  • LEZ registry program (methods/guest/) — PDA-per-CID layout. Anchor cost O(1) regardless of registry size, unbounded capacity, idempotency-by-default-state-check.

On-chain evidence (RISC0_DEV_MODE=0, real local sequencer = LEZ devnet per Logos Discord 2026-05-11):

  • 50-CID batch confirmed in a single transaction (lez_adapter_anchor_50_cids_in_one_tx) — 5x the spec's ≥10-per-batch requirement.
  • FFI anchor path verified through the C ABI (anchor_one_via_ffi_against_live_sequencer + idempotent variant) — exactly the path the QML "Anchor" button drives.
  • Real Basecamp instance verified 2026-05-09 (lgs basecamp launch alice): plugin loaded, storage upload returned a manifest CID, delivery broadcast sent the JSON envelope.
  • CU benchmarks: 50-CID batch ~120ms zkVM executor time (~2.5ms/CID amortized), single-CID ~6-12ms. Captured in BENCHMARKS.md.

CI: .github/workflows/ci.yml runs the full workspace including the risc0 zkVM guest, FFI, LEZ adapter, and ignored live-LEZ tests against a localnet sequencer.

See solutions/LP-0017.md for the full spec compliance map and architecture notes.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 20, 2026

✅ Validation passed

A reviewer will assess against the prize criteria.
ℹ️ Solution submission for LP-0017.
ℹ️ Checking repo: https://github.com/Tranquil-Flow/lp-0017-whistleblower


Automated check. See solution template and TERMS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant