MARTIANSchedule a free consultation
Client work
NEAR FOUNDATION

Proof of Response protocol for NEAR Foundation

Data pipeline architecture & ML infrastructure

Editorial photography
Outcome summary

Martian Engineering worked with NEAR Foundation on Proof of Response, a protocol for routing requests through a peer-to-peer network with payments and response verification. We built a Rust implementation, node-to-contract integration, an SDK, and end-to-end tests. The work also included route finding, authentication, state-channel logic, and a file-sharing layer built on the protocol.

The problem

Proof of Response (PoR) aims to make network availability observable and economically accountable. A client sends a request through relay nodes to a server, and the response travels back along the same route. Nodes need a way to settle the cost of forwarding each request.

What Martian built

Martian worked with NEAR cofounder Alex Skidanov on a Rust implementation, SDK, documentation, and node-to-contract integration. The running protocol connects PoR nodes with NEAR nodes that execute the state-channel contract. End-to-end tests exercise the network in several scenarios.

How the protocol works

PoR uses TCP requests and responses with state-channel payment updates. The client sends a signed debit, and the receiving node countersigns the update. Martian developed route finding, message framing, heartbeats, late payments, response authentication, and APIs for client and server applications. The contract handles channel opening and closing, partition checks, and reimbursements.

Additional work

Martian also built a file-sharing protocol on top of PoR. The NEAR announcement and protocol paper provide more detail on the design.

A broad red desert canyon
Free automation audit

Still figuring out what AI means for your company?

Get a clear plan with a free automation audit.

Schedule a free consultation ↗