Skip to content

LP-0016: Anonymous Forum with Threshold Moderation and Membership Revocation#465

Open
syafiqeil wants to merge 13 commits intologos-blockchain:mainfrom
syafiqeil:main
Open

LP-0016: Anonymous Forum with Threshold Moderation and Membership Revocation#465
syafiqeil wants to merge 13 commits intologos-blockchain:mainfrom
syafiqeil:main

Conversation

@syafiqeil
Copy link
Copy Markdown

Description

This Pull Request submits the complete implementation for LP-0016: Anonymous Forum with Threshold Moderation and Membership Revocation.

The architecture is deliberately decoupled into two primary layers to ensure a trustless, standalone, and agnostic moderation library:

  1. Consensus Layer (Smart Contract & ZKVM): Implements membership_registry with a highly optimized RISC Zero circuit that uses native NSSA SHA-256 to verify SMT membership and generate deterministic tracing tags without leaking the Nullifier Secret Key (NSK).
  2. Coordination Layer (WASM SDK): A standalone frontend library (logos_moderation_sdk) heavily optimized for the browser. Heavy blockchain dependencies were explicitly decoupled in favor of a lean cryptographic module supporting N-of-M Shamir's Secret Sharing and BIP340 Schnorr signatures.

Demo & Documentation

Key Features

  • Zero-Knowledge Posting: Sub-10s ZK proving on standard multi-core hardware.
  • Two-Tier Threshold Moderation: Cryptographically enforces $K$ strikes before a user's NSK can be reconstructed by $N$ out of $M$ moderators.
  • Retroactive Deanonymization: Trustless execution of slashing and historical linkage upon malicious actor exposure.
  • WebAssembly Ready: Zero blocking I/O, perfectly suited for browser environments.

Type of change

  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

Testing Performed

  • Local integration_tests/tests/forum.rs complete lifecycle (Registration -> ZK Proof -> Strike Accumulation -> Deanonymization -> Slashing).
  • E2E Frontend integration via the standalone Basecamp React App.

syafiqeil added 13 commits May 1, 2026 11:25
Adds initialization, member registration with stake, VerifyPost via ZK receipt, and trustless Slash instruction using raw NSK.
Implements identity derivation, SMT registry verification, blacklist prevention, and deterministic tracing tag generation.
Extracts BIP340 Schnorr signatures and Shamir's Secret Sharing to remove heavy blockchain dependencies, ensuring WASM compatibility for the browser.
Implements member, moderator, and aggregator clients for off-chain N-of-M threshold coordination and exposes them via wasm-bindgen.
Tests full flow including registration, 90-second ZK posting via RISC0, off-chain strike accumulation, and on-chain mathematical deanonymization.
- Added , , and  via local paths.
- Migrated core crates (, , , , ) to workspace inheritance for version consistency.
- Configured  with  and  features for high-performance async execution.
- Refactored and organized Cargo.toml structure for better maintainability.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants