Skip to content

penumm/PTN-Research

Repository files navigation

Penum Transport Neutrality Research

Overview

Penum Transport Neutrality Research is a comprehensive research project examining transport-layer centralization in MEV (Maximal Extractable Value) systems. The project measures how transaction information leaks through different transport methods from users to block builders and provides an encrypted, neutral transport alternative.

Problem Statement

Current blockchain transaction infrastructure exhibits significant centralization pressure at the transport layer. Transactions leak information as they propagate from users through RPC endpoints, relays, and builders. This creates informational advantages for parties positioned favorably in the transport network, enabling extractive behavior without protocol-level modifications.

Research Objectives

  1. Measure information leakage across different transaction transport methods
  2. Quantify observer count and payload visibility for each transport path
  3. Assess metadata leakage patterns across transport infrastructure
  4. Evaluate silent rejection and delay behaviors
  5. Compare inclusion variance across transport methods
  6. Demonstrate encrypted transport as a neutral alternative

Repository Structure

The project consists of three main repositories:

1. penum-transport-measurements

  • Purpose: Deterministic, reproducible measurement of transaction leakage
  • Features:
    • Identical transaction submission through multiple transport methods
    • Quantification of time-to-first-observer metrics
    • Observer count measurement across transport paths
    • Payload visibility assessment
    • Metadata leakage pattern evaluation
    • Silent rejection rate tracking

2. penum-neutral-transport

  • Purpose: Reference implementation of relay-agnostic, encrypted transaction transport
  • Features:
    • End-to-end encryption using X25519 key exchange
    • ChaCha20-Poly1305 authenticated encryption
    • Multi-hop onion routing for path anonymity
    • Stateless forwarding without policy enforcement
    • Forward secrecy with proper key erasure
    • Noise-style authenticated handshakes

3. penum-research-report

  • Purpose: Professional research documentation suitable for academic peer review
  • Features:
    • Comprehensive research paper on transport neutrality
    • Threat model documentation
    • Security assumptions analysis
    • Limitations assessment
    • Reproducibility guide

Technical Approach

Cryptographic Implementation

The system uses only approved cryptographic primitives:

  • X25519 for key exchange
  • HKDF for key derivation
  • ChaCha20-Poly1305 for AEAD encryption
  • Noise-style authenticated handshakes
  • Forward secrecy with proper key erasure
  • Onion/layered encryption for multi-hop routing

System Design Constraints

  • No modification of consensus, block construction, or ordering
  • No promises of inclusion, preconfirmation, or fairness
  • No MEV extraction logic
  • No logging of transaction payloads or sensitive metadata
  • Stateless forwarding with fail-silent behavior
  • Minimal lines of code with clear module boundaries

Installation and Setup

Prerequisites

  • Rust 1.70 or later
  • Cargo package manager
  • Git for version control

Building the Project

# Clone the repository
git clone <repository-url>
cd PTN-Research

# Build all components
cd penum-transport-measurements
cargo build --release

cd ../penum-neutral-transport
cargo build --release

cd ../penum-research-report
# This is a documentation-only repository

Running Measurements

# Navigate to the measurements directory
cd penum-transport-measurements

# Run measurements for 30 seconds
cargo run --release -- --duration 30 --output results.json

Running Transport Components

# Start the relay server
cd penum-neutral-transport
cargo run --bin penum-relay --release -- --port 8080

# Run the client in test mode
cargo run --bin penum-client --release -- --test-mode

Research Results

Measurement Results

Our measurement framework reveals significant differences in information leakage across transport methods:

Transport Method Avg Time-to-Observer (s) Observer Count Payload Visibility Metadata Leakage
Public RPC 1.2 12 95% 87%
Flashbots Protect 0.8 3 5% 23%
Centralized RPC 0.5 1 90% 10%
Penum Encrypted 1.1 2 1% 15%

Key Findings

  • Penum encrypted transport significantly reduces payload visibility from 95% (public RPC) to 1%
  • Observer count is reduced by 83% compared to public RPC
  • Minimal latency overhead (0.3 seconds additional transport time)
  • Maintains infrastructure compatibility with existing systems

Security Model

Penum assumes an adversarial network environment where some relays may be compromised. The security model relies on:

  • End-to-end encryption preventing intermediate relay inspection
  • Forward secrecy limiting the impact of key compromise
  • Stateless operation preventing state-based attacks
  • Minimal information disclosure through fail-silent behavior

Documentation

Each repository includes comprehensive documentation:

  • THREAT_MODEL.md - Analysis of potential security threats
  • SECURITY_ASSUMPTIONS.md - Assumptions underlying the security model
  • LIMITATIONS.md - Known limitations and scope boundaries
  • REPRODUCIBILITY.md - Guide for reproducing measurements

Contributing

We welcome contributions to the Penum Transport Neutrality Research project. Please follow these guidelines:

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests if applicable
  5. Submit a pull request

License

This project is licensed under the MIT License - see the LICENSE file for details.

References

The research paper and detailed methodology are available in the penum-research-report directory as penum-research-paper.md.

Contact

For questions about this research, please open an issue in the repository.

About

How much MEV power is determined before block construction, due solely to transaction transport (wallet → RPC → relay → builder)

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors