stratum

Stratum server implementation based on Twisted
Download

stratum Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Other/Proprietary Li...
  • Price:
  • FREE
  • Publisher Name:
  • slush
  • Publisher web site:
  • https://github.com/slush0/

stratum Tags


stratum Description

stratum is server implementation of Stratum protocol using asynchronous networking written in Python Twisted.InstallationFollowing instructions will work on Ubuntu & Debian*:a) From GIT, for developersgit clone git://gitorious.org/stratum/server.gitsudo apt-get install python-devsudo python setup.py developb) From package, permanent installsudo apt-get install python-devsudo python setup.py install#sudo apt-get install python-setuptools#sudo easy_install twisted#sudo easy_install ecdsa#sudo easy_install pyopenssl#sudo easy_install autobahn*) Debian don't have a 'sudo' command, please do the installationprocess as a root user.Configurationa) Basic configurationCopy config_default.py to config.pyEdit at least those values: HOSTNAME, BITCOIN_TRUSTED_*b) Message signaturesFor enabling message signatures, generate server's ECDSA key by python signature.py > signing_key.pem and fill correct values to SIGNING_KEY and SIGNING_ID (config.py)c) Creating keys for SSL-based transportsFor all SSL-based transports (HTTPS, WSS, ...) you'll need private key and certificate file. You can use certificates from any authority or you can generate self-signed certificates, which is helpful at least for testing.Following script will generate self-signed SSL certificate:#!/bin/bashopenssl genrsa -des3 -out server.key 1024openssl req -new -key server.key -out server.csrcp server.key server.key.orgopenssl rsa -in server.key.org -out server.keyopenssl x509 -req -in server.csr -signkey server.key -out server.crtThen you have to fill SSL_PRIVKEY and SSL_CACERT in config file with values 'server.key' and 'server.crt'.StartupStart devel server:twistd -ny launcher.tacDevel server *without* lowlevel messages of Twisted:twistd -ny launcher.tac -l log/twistd.logProduct's homepage


stratum Related Software