No description
Find a file
2019-05-01 19:50:56 +03:00
bitcoin added some prevouthas:n functions and QString supprot to bitcoin::COutPoint 2019-05-01 10:31:58 +03:00
.gitignore Initial revision. Just laying out a skeleton to build on. 2019-04-23 02:33:16 +03:00
AbstractConnection.cpp Finally.. finished refactoring out the RPC bits. 2019-04-30 19:21:47 +03:00
AbstractConnection.h Finally.. finished refactoring out the RPC bits. 2019-04-30 19:21:47 +03:00
App.cpp Added Linux compile fixups. Also a check that the endianness in bitcoin:: is ok. 2019-05-01 18:19:17 +03:00
App.h Refactored a little 2019-04-27 19:58:42 +03:00
BTC.cpp nit to endian check 2019-05-01 18:30:22 +03:00
BTC.h Added Linux compile fixups. Also a check that the endianness in bitcoin:: is ok. 2019-05-01 18:19:17 +03:00
BTC_OpCodes.h Imported more bitcoin code: transaction class and serialization/deser 2019-05-01 00:40:29 +03:00
Common.cpp Added some small goodies 2019-04-27 12:38:50 +03:00
Common.h Added some small goodies 2019-04-27 12:38:50 +03:00
EXClient.cpp Finally.. finished refactoring out the RPC bits. 2019-04-30 19:21:47 +03:00
EXClient.h Finally.. finished refactoring out the RPC bits. 2019-04-30 19:21:47 +03:00
EXMgr.cpp Added error messgae RPC handlign in EXMgr (just prints a warning) 2019-04-30 19:42:22 +03:00
EXMgr.h Finally.. finished refactoring out the RPC bits. 2019-04-30 19:21:47 +03:00
Logger.cpp Added SysLogger for -S option which actually uses unix syslog() 2019-04-27 16:00:58 +03:00
Logger.h Added SysLogger for -S option which actually uses unix syslog() 2019-04-27 16:00:58 +03:00
main.cpp removed testign 2019-04-25 21:20:45 +03:00
Mgr.cpp Added some small goodies 2019-04-27 12:38:50 +03:00
Mgr.h intermediate commit.. about to refactor exclient more 2019-04-30 10:01:21 +03:00
Mixins.cpp initial schema impl 2019-04-29 10:01:58 +03:00
Mixins.h Refactorings continue... 2019-04-28 11:59:14 +03:00
Options.cpp Refactoring nits. Put default Options in Options.h rather than Common.h 2019-04-26 09:02:53 +03:00
Options.h Refactoring nits. Put default Options in Options.h rather than Common.h 2019-04-26 09:02:53 +03:00
README.md Nits to README.md 2019-05-01 19:50:56 +03:00
resources.qrc Initial revision. Just laying out a skeleton to build on. 2019-04-23 02:33:16 +03:00
RPC.cpp Finally.. finished refactoring out the RPC bits. 2019-04-30 19:21:47 +03:00
RPC.h Added error messgae RPC handlign in EXMgr (just prints a warning) 2019-04-30 19:42:22 +03:00
servers.json Initial revision. Just laying out a skeleton to build on. 2019-04-23 02:33:16 +03:00
ShuffleUpSrv.pro Added Linux compile fixups. Also a check that the endianness in bitcoin:: is ok. 2019-05-01 18:19:17 +03:00
SrvMgr.cpp nit 2019-04-27 13:37:39 +03:00
SrvMgr.h Added some small goodies 2019-04-27 12:38:50 +03:00
TcpServer.cpp Finally.. finished refactoring out the RPC bits. 2019-04-30 19:21:47 +03:00
TcpServer.h Finally.. finished refactoring out the RPC bits. 2019-04-30 19:21:47 +03:00
Util.cpp Added SysLogger for -S option which actually uses unix syslog() 2019-04-27 16:00:58 +03:00
Util.h Added error messgae RPC handlign in EXMgr (just prints a warning) 2019-04-30 19:42:22 +03:00

Shuffle Up Server

Author: Calin Culianu (<calin.culianu __ at __ gmail . com>)

A fast shuffling server for use with Electron Cash's future "shuffle up" feature (which we haven't properly figured out a name for as yet), written in C++.

Highlights and design goals:

  • Speed: Server is 100% modern C++ code using multi-threaded programming techniques.
  • Flexibility: We want to be able to modify the shuffling logic and add levels of trustlessness as we develop advanced shuffling techniques involving potentially hundreds of inputs. As such, the server's core kernel which handles communication should be decoupled from the other parts that higher level shuffle logic. (So far, so good.)

Requirements

  • Qt Core & Qt Networking libraries 5.11 or above (I use 5.12.3 myself).
  • A modern C++17 compiler. Clang is recommended but G++ also works.
  • No other external dependencies. All crypto functions use code imported from Bitcoin-ABC (such as secp256k1, etc).

How To Compile

It's recommended you use Qt Creator.

  1. Get the latest version of Qt for your platform.
  2. Point the Qt Creator IDE at the ShuffleUpServer.pro file.
  3. Hit Build. It should "just work".

Platform Notes

Big Endian Architectures

The code is more or less configured to assume a "little endian" architecture by default (which is what all Intel x86/x86_64 are). If you're on a big endian machine, on Linux it should just auto-detect that fact. However, on other OS's such as BSD, if you're on a big endian machine, you may need to uncomment this line from the .pro file:

# DEFINES += WORDS_BIGENDIAN

Windows

I couldn't easily get MSVC versions before 2019 to actually accept legal C++17. As such, if you're using Qt Creator on Windows -- it's recommended you select MinGW and/or G++ as the compiler (which comes with the Qt distribution for Windows).

Linux

If you have clang on your system, configure the project to use it as the compiler preferentially over G++. G++ works too, but clang is preferred because reasons.

MacOS

Everything should just work (I use MacOS as my dev machine, so that's why).


F.A.Q.


Q: This thing isn't finished yet!

A: Yes, I know It's still a work in progress.


Q: Why Qt? This isn't a GUI app!

A: Yes, I know. However, Qt is a very decent, cross-platform and fast application framework. You can use its "Core" library for console apps, servers, etc. It has great network support and other basic things a programmer needs to get stuff done.



Donations

Sure! Send BCH here:

bitcoincash:qphax4s4n9h60jxj2fkrjs35w2tvgd4wzvf52cgtzc

bitcoincash:qphax4s4n9h60jxj2fkrjs35w2tvgd4wzvf52cgtzc