Stratum

From Bitcoin Wiki
Jump to navigation Jump to search

Stratum is a proposal for an open source client-server "overlay" protocol that enables thin clients. It is currently used by Electrum. While originally announced right before 2012,[1] the protocol has not yet been completed and proposed as a BIP for standardisation.

Marek Palatinus ("slush") described it as an "overlay network" on top of the Bitcoin peer-to-peer network: servers that keep the full block chain provide services to clients that hold only their private keys. The project's working name had been "Electrum platform" before "Stratum" was chosen.[1]

Design

The announcement set out requirements for the protocol: it should be as simple as possible, text-based so that languages such as JavaScript and PHP could use it, and support request–response remote procedure calls with a clear mapping between each request and its response. Among the uses it listed for the network was support for various transport protocols, especially HTTP Push, which would let PHP websites integrate with Bitcoin easily. The first public nodes, london.stratum.bitcoin.cz and chicago.stratum.bitcoin.cz, accepted TCP connections on port 3333 and HTTP on ports 8000 and 8001, and the server implementation was hosted on Gitorious.[1]

Use in Electrum

Electrum added HTTP and Stratum transports in March 2012.[2] Electrum version 0.44, committed on 29 April 2012, fixed JSON-RPC Stratum support and deprecated the client's earlier native protocol.[3]

Mining extensions

Main page: Stratum mining protocol

In addition to its use for bitcoin wallets, the stratum protocol is also in common use with mining extensions.

On 11 September 2012 Palatinus announced the Stratum mining protocol as a proposal for a new pooled mining protocol, and said he had been running an experimental pool using it since the previous day.[4]

See also

References

  1. ↑ 1.0 1.1 1.2 Overlay network protocol over Bitcoin, post by slush, Bitcoin Forum, 27 December 2011.
  2. ↑ Commit ec37360: first working version for http/stratum, spesmilo/electrum repository on GitHub, 19 March 2012.
  3. ↑ Commit 26b19ad: version 0.44. fix jsonrpc stratum, deprecate native protocol, spesmilo/electrum repository on GitHub, 29 April 2012.
  4. ↑ Stratum mining protocol - ASIC ready, post by slush, Bitcoin Forum, 11 September 2012.