Skip to content

M1.1 Local WebSocket-to-TCP bridge (the shim) #7

Description

@melvincarvalho

Part of #1 (M1).

Goal

A tiny local process that relays between a browser WebSocket and a Bitcoin TCP peer (port 8333), so a tab can speak the p2p protocol. Target ~100 lines.

Benchmark / acceptance

  • From a browser tab, complete a Bitcoin p2p handshake (version/verack) and receive headers and inv from a real peer through the bridge.
  • Measure added latency and sustained throughput (MB/s) through the relay.

Notes

Ship as a small downloadable (node script and/or single binary). Document the trust model clearly: the bridge relays bytes only; the tab validates everything. WebRTC/WebTorrent swarming is deferred (see #1).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions